项目作者: sujalpatel2209

项目描述 :
Convert Integer to English word
高级语言: PHP
项目地址: git://github.com/sujalpatel2209/IntegerToEnglish.git
创建时间: 2019-10-24T12:42:48Z
项目社区:https://github.com/sujalpatel2209/IntegerToEnglish

开源协议:MIT License

下载


Convert Integer to English Words

Latest Version on Packagist
Build Status
Quality Score
Total Downloads

Laravel package for converting numeric value to english words.

Installation

You can install the package via composer:

  1. composer require sujalpatel/inttoenglish

Usage

  1. IntToEnglish::Int2Eng(1000); // One Thousand
  2. IntToEnglish::Int2Eng(10500); // Ten Thousand Five hundred

Example

Controller

  1. use Illuminate\Http\Request;
  2. use SujalPatel\IntToEnglish\IntToEnglish;
  3. class TestController extends Controller
  4. {
  5. public function index() {
  6. echo IntToEnglish::Int2Eng(4500000); //Four Million Five Hundred Thousand
  7. }
  8. }

Route

  1. 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.