2017 © Pedro Peláez
 

library notowo

This Package helps developers change number to word for all language on Laravel freamwork PHP

image

hekmatinasser/notowo

This Package helps developers change number to word for all language on Laravel freamwork PHP

  • Friday, September 22, 2017
  • by hekmati.nasser
  • Repository
  • 1 Watchers
  • 9 Stars
  • 4,541 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 19 % Grown

The README.md

hekmatinasser/notowo

  • This package compatible with Laravel >=5 & <= 8.0, (*1)

  • notowo is package for change number to word, (*2)

Run the Composer update comand, (*3)

$ composer require hekmatinasser/notowo

In your config/app.php add Hekmatinasser\Notowo\NotowoServiceProvider::class, to the end of the providers array and add 'Notowo' => Hekmatinasser\Notowo\Notowo::class, to the end of the alias array., (*4)

'providers' => [

    ...
    Hekmatinasser\Notowo\NotowoServiceProvider::class,

],

'alias' => [

    ...
    'Notowo' => Hekmatinasser\Notowo\Notowo::class,
]

, (*5)

Basic Usage

Notowo

You can use Notowo in project, (*6)

use Notowo;

Constructors

return notowo('125000'); // one hundred and twenty and five thousand
return new Notowo('125000'); // one hundred and twenty and five thousand
return Notowo::parse(125000); // one hundred and twenty and five thousand

//max 39 digit
return notowo('653484112849950468404684114841147284520', 'fa');
ششصد و پنجاه و سه دسیلیون و چهارصد و هشتاد و چهار نونیلیون و صد و دوازده اکتریلیون و هشتصد و چهل و نه سپتریلیون و نهصد و پنجاه سکستریلیون و چهارصد و شصت و هشت کوینتریلیون و چهارصد و چهار کادریلیون و ششصد و هشتاد و چهار تریلیون و صد و چهارده بیلیون و هشتصد و چهل و یک میلیارد و صد و چهل و هفت میلیون و دویست و هشتاد و چهار هزار و پانصد و بیست

Localization

return new Notowo('125000', 'fa'); // صد و بیست و پنج هزار
$w = notowo('125000');
return $w->setLang('fa'); // صد و بیست و پنج هزار
return $w->getLang(); // fa
return $w->resetLang(); // one hundred and twenty and five thousand

Currency

$w = Notowo::parse(125000, 'fa');
return $w->currency(); // صد و بیست و پنج هزار ریال
return $w->currency('تومان');

return $w->setCurrency('تومان'); 
return $w->getCurrency(); // تومان
return $w->resetCurrency(); // صد و بیست و پنج هزار

License

  • This package was created and modified by Nasser Hekmati for Laravel >= 5 and is released under the MIT License.

The Versions

22/09 2017

dev-master

9999999-dev

This Package helps developers change number to word for all language on Laravel freamwork PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Nasser Hekmati

laravel number word n2w notowo

22/09 2017

v1.0.1

1.0.1.0

This Package helps developers change number to word for all language on Laravel freamwork PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Nasser Hekmati

laravel number word n2w notowo

27/06 2017

v1.0

1.0.0.0

This Package helps developers change number to word for all language on Laravel freamwork PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

by Nasser Hekmati

laravel number word n2w notowo