sujalpatel / inttoenglish
Convert Integers to English Words
v1.0.4
2019-10-24 13:28 UTC
Requires
- php: ^7.1
Requires (Dev)
- orchestra/testbench: 4.3.*
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2024-11-20 23:43:04 UTC
README
Laravel package for converting numeric value to english words.
Installation
You can install the package via composer:
composer require sujalpatel/inttoenglish
Usage
IntToEnglish::Int2Eng(1000); // One Thousand IntToEnglish::Int2Eng(10500); // Ten Thousand Five hundred
Example
Controller
use Illuminate\Http\Request; use SujalPatel\IntToEnglish\IntToEnglish; class TestController extends Controller { public function index() { echo IntToEnglish::Int2Eng(4500000); //Four Million Five Hundred Thousand } }
Route
Route::get('/', 'TestController@index');
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email sujalpatel022@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.