Laravel package for converting numeric value to english words.
You can install the package via composer:
composer require sujalpatel/inttoenglish
IntToEnglish::Int2Eng(1000); // One Thousand
IntToEnglish::Int2Eng(10500); // Ten Thousand Five hundred
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');
Please see CONTRIBUTING for details.
If you discover any security related issues, please email sujalpatel022@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.