dev-master
9999999-devFormat your money
WTFPL
The Requires
- php >=5.3.0
The Development Requires
by Set Kyar Wa Lar
money format
Wallogit.com
2017 © Pedro Peláez
Format your money
You want to format your money? Let's format with simply way :), (*1)
Create composer.json and add the following, (*2)
{
"require" : {
"setkyar/moneyformat" : "dev-master"
}
}
And run $ composer install via your terminal, (*3)
Create new php file and add the following, (*4)
<?php
// Display Errors On
ini_set('display_errors', 'On');
$autoload = __DIR__.'/vendor/autoload.php';
if ( ! file_exists($autoload))
{
exit("Need to run \"composer install\"!");
}
require $autoload;
use SetKyar\MoneyFormat\MoneyFormat;
$currency = new MoneyFormat;
var_dump($currency->Format(2000, 'Kyats')); //string(11) "Kyats 2,000"
var_dump($currency->Format(2000, 'USD')); //string(11) "USD 2,000"
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Stars to both Packagist and Here are welcome :smile:, (*5)
WTFPL, (*6)
Format your money
WTFPL
money format