Skip to content

hrbmt/numeral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numeral

Latest Version on Packagist Total Downloads Build Status StyleCI

This is where your description should go. Take a look at contributing.md to see a to do list.

Installation

This package can be installed using Composer by issuing this command in the root of your project:

composer require hrbmt/numeral

Getting Started

<?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');

Numbers

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

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits

License

license. Please see the license file for more information.

Author

Yang H.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages