- Notifications
You must be signed in to change notification settings - Fork4
This package help to developer to change number to word
License
NotificationsYou must be signed in to change notification settings
hekmatinasser/notowo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This package compatible with Laravel
>=5
&<= 8.0
notowo is package for change number to word
Run the Composer update comand
$ composer require hekmatinasser/notowo
In yourconfig/app.php
addHekmatinasser\Notowo\NotowoServiceProvider::class,
to the end of theproviders
array and add'Notowo' => Hekmatinasser\Notowo\Notowo::class,
to the end of thealias
array.
'providers' => [ ...Hekmatinasser\Notowo\NotowoServiceProvider::class,],'alias' => [ ...'Notowo' =>Hekmatinasser\Notowo\Notowo::class,]
You can use Notowo in project
useNotowo;
returnnotowo('125000');// one hundred and twenty and five thousandreturnnewNotowo('125000');// one hundred and twenty and five thousandreturn Notowo::parse(125000);// one hundred and twenty and five thousand//max 39 digitreturnnotowo('653484112849950468404684114841147284520','fa');ششصد و پنجاه و سه دسیلیون و چهارصد و هشتاد و چهار نونیلیون و صد و دوازده اکتریلیون و هشتصد و چهل و نه سپتریلیون و نهصد و پنجاه سکستریلیون و چهارصد و شصت و هشت کوینتریلیون و چهارصد و چهار کادریلیون و ششصد و هشتاد و چهار تریلیون و صد و چهارده بیلیون و هشتصد و چهل و یک میلیارد و صد و چهل و هفت میلیون و دویست و هشتاد و چهار هزار و پانصد و بیست
returnnewNotowo('125000','fa');// صد و بیست و پنج هزار$w =notowo('125000');return$w->setLang('fa');// صد و بیست و پنج هزارreturn$w->getLang();// fareturn$w->resetLang();// one hundred and twenty and five thousand
$w = Notowo::parse(125000,'fa');return$w->currency();// صد و بیست و پنج هزار ریالreturn$w->currency('تومان');return$w->setCurrency('تومان');return$w->getCurrency();// تومانreturn$w->resetCurrency();// صد و بیست و پنج هزار
- This package was created and modified byNasser Hekmati for Laravel >= 5 and is released under the MIT License.
About
This package help to developer to change number to word
Resources
License
Stars
Watchers
Forks
Packages0
No packages published