Download the PHP package febripratama/terbilang without Composer
On this page you can find all versions of the php package febripratama/terbilang. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download febripratama/terbilang
More information about febripratama/terbilang
Files in febripratama/terbilang
Package terbilang
Short Description Hasil fork dari https://github.com/riskihajar/terbilang
License MIT
Homepage https://github.com/riskihajar/terbilang
Informations about the package terbilang
Number To Words Conversion For Laravel
Number to words conversion support multi language.
Supported Language
id
| Bahasa Indonesiaen
| Englishpt
| Portuguese- soon
Feature
Usage
Step 1: Install Through Composer
then run composer update
For Laravel 4 Please use 1.0.4
version
Step 2: Add Providers & Aliases
In the $providers
array add the service providers for this package.
Add the facade of this package to the $aliases
array.
Step 3: Publish Configuration (Optional)
If you want customize configuration, you can run following command to publish config file
Examples
Number To Words
Terbilang::make($number, $suffix, $prefix)
if you set locale to en
if you set locale to id
Prefix & Suffix
if you set locale to id
if you set locale to en
Number to Roman
Terbilang::roman($number, $lowercase=false)
Number Short Hand
Terbilang::short($number, $format)
Available short hand : kilo, million, billion, trillion
Default value : million
if you set locale to en
if you set locale to id
Datetime
Date Terbilang::date($date, $format='Y-m-d');
Time Terbilang::time($date, $format='h:i:s');
Date Time Terbilang::datetime($date, $format='Y-m-d h:i:s');
Using Carbon
if using carbon, you can ignore $format
Period
You can diff two dates or just one date and automaticly with current date use method Terbilang::period($start, $end=null, $format=null)
Config for period format
Example Period
License
Riskihajar Terbilang is licensed under the MIT License.
Copyright 2017 riskihajar