2017 © Pedro Peláez
 

library moneyformat

Format your money

image

setkyar/moneyformat

Format your money

  • Friday, March 6, 2015
  • by setkyar
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Money Format

You want to format your money? Let's format with simply way :), (*1)

Installation

Create composer.json and add the following, (*2)

{
  "require" : {
    "setkyar/moneyformat" : "dev-master"
  }
}

And run $ composer install via your terminal, (*3)

Usage

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"

Todo

  • Write Test

Contributing

  1. Fork it ( https://github.com/setkyar/phpmoneyformat )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Stars to both Packagist and Here are welcome :smile:, (*5)

License

WTFPL, (*6)

The Versions

06/03 2015

dev-master

9999999-dev

Format your money

  Sources   Download

WTFPL

The Requires

  • php >=5.3.0

 

The Development Requires

by Set Kyar Wa Lar

money format