Download the PHP package genie-fintech/laravel-num without Composer
On this page you can find all versions of the php package genie-fintech/laravel-num. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-num
Laravel Num
To convert the unicode digit to another unicode digit.
Supported languages
By default, You can convert english, myanmar and thai numbers.
If you would like to add more, you can add zero unicode characters
at config/num.php.
You can see more zero unicode character
at zero-unicode.md.
Installation
You can install this package via composer using this command:
The package will automatically register itself.
Publish configuration and asset files
Usage
Using the facade
Direct convert from the english number to the myanmar number
Convert to the myanmar number
Convert to the thai number
Convert to the english number
Using with Helpers
Convert to the myanmar number
Convert to the thai number
Convert to the english number
Macro
The Laravel Num allows you to define "macros", which can serve as a fluent, expressive mechanism to configure string, to language and from language when interacting with services throughout your application. To get started, you may define the macro within the boot method of your application's App\Providers\AppServiceProvider class:
Once your macro has been configured, you may invoke it from anywhere in your application to convert numbers with the specified configuration:
Note If convert language don't have in num.php, you may configure this language in your num configuration file.
Testing
You can run the tests with:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Tint Naing Win
- All Contributors
License
The MIT License (MIT). Please see License File for more information.