This is where your description should go. Take a look at contributing.md to see a to do list.
This package can be installed using Composer by issuing this command in the root of your project:
composer require hrbmt/numeral
<?php
use Hrbmt\Numeral\Numeral;
// Create the Numeral instance.
$formatter = new Numeral;
// solution 1
$formatter->setNumber(1000)->format('0,0');
// OR
// solution 2
Numeral::setNumber(1000)->format('0,0');
Number | Format | String |
---|---|---|
10000.234 | 10000 | |
10000.234 | '0.00' | 10000.23 |
10000.234 | '0,0.00' | 10,000.23 |
10000.234 | '0,0' | 10,000 |
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.
Yang H.