The master branch is under active development and functionality may change or break at any time!
Getting started
Routing and controllers
Command line
Databases (SQL)
Databases (NoSQL)
Security
Packages
Learn more
- Array helper
- Caching
- Collections
- Command, event and query buses
- Date and time
- File system
- HTML helper
- Humanizer
- Image manipulation
- Internationalization
- Logging
- Number helper
- Pagination
- Retry helper
- Sessions
- String helper
- URL builder
- UUID helper
- Validation
- Views
Official packages
Number helper
The number helper contains methods that can be useful when working with numbers.
Usage
The arabic2roman
method converts Arabic numerals to roman numerals.
echo Num::arabic2roman(1984); // Will print "MCMLXXXIV"
The number must be between 1 and 3999.
The roman2arabic
method will convert roman numerals to Arabic numerals.
echo Num::roman2arabic('MCMLXXXIV'); // Will print "1984"
The number must be between I and MMMCMXCIX.