2017 © Pedro Peláez
 

library humongous

PHP library for turning large numbers into numbers formatted as 1.3k.

image

worddrop/humongous

PHP library for turning large numbers into numbers formatted as 1.3k.

  • Saturday, January 17, 2015
  • by jeroenvisser101
  • Repository
  • 1 Watchers
  • 5 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Humongous (by Worddrop) Build Status

A library that helps you create readable and short numbers from numbers that are larger than 999., (*1)

Installation

Currently, the only reliable way (and recommended way) to install Humongous is by using PHP's package manager Composer., (*2)

Using Composer

``` json { "require": { "worddrop/humongous": "dev-master" } }, (*3)


## Usage ``` php <?php use Humongous\Humongous; $number = 13224; $niceNumber = Humongous::parse($number, 1); echo $niceNumber; // 13.2k

API

php Humongous::parse(int $number, int $precision = 1, string $decimalSeparator = '.');, (*4)

Parameters - $number The number that has to be formatted. - [$precision = 1] The number of decimals that have to be preserved (0's will automatically be trimmed off) - [$decimalSeparator = '.'] A character to separate the decimals., (*5)

Returns string, (*6)

License

This project is licensed under MIT license. For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*7)

Contributing

You may contribute in any way you want, as long as you agree that your code will be licensed under the same license as the project itself., (*8)

The Versions

17/01 2015

dev-master

9999999-dev

PHP library for turning large numbers into numbers formatted as 1.3k.

  Sources   Download

MIT

The Development Requires

by Jeroen Visser

numbers big large abbreviation shortning

13/07 2014

0.2.2

0.2.2.0

PHP library for turning large numbers into numbers formatted as 1.3k.

  Sources   Download

MIT

The Development Requires

by Jeroen Visser

numbers big large abbreviation shortning

13/07 2014

0.2.1

0.2.1.0

PHP library for turning large numbers into numbers formatted as 1.3k.

  Sources   Download

MIT

The Development Requires

by Jeroen Visser

numbers big large abbreviation shortning

13/07 2014

0.2.0

0.2.0.0

PHP library for turning large numbers into numbers formatted as 1.3k.

  Sources   Download

MIT

The Development Requires

by Jeroen Visser

numbers big large abbreviation shortning

13/07 2014

0.1.0

0.1.0.0

PHP library for turning large numbers into numbers formatted as 1.3k.

  Sources   Download

MIT

The Development Requires

by Jeroen Visser

numbers big large abbreviation shortning