Download the PHP package terranet/php-humanizer without Composer
On this page you can find all versions of the php package terranet/php-humanizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-humanizer
PHP Humanizer
Humanize values to make them readable for regular people ;)
Installation
Run the following command:
Usage
Text
Humanize
Truncate
Truncate string to word closest to a certain length
Truncate HTML
Truncate and HTML string to word closest to a certain length
Number
Ordinalize
Ordinal
Roman numbers
Binary Suffix
Convert a number of bytes in to the highest applicable data unit
Number can be also formatted for specific locale
Number can also be humanized with a specific number of decimal places with preciseBinarySuffix($number, $precision, $locale = 'en')
The precision parameter must be between 0 and 3.
This function also supports locale
Metric Suffix
Number can be also formatted for specific locale
Collections
Oxford
Oxford is using translator component, so you can use whatever string format you like.
Date time
Difference
Precise difference
Currently we support following languages:
- English
- Polish
- German
- Turkish
- French
- Português - Brasil
- Italian
- Dutch
- Русский
- Norwegian
- [Afrikaans] (src/Coduo/PHPHumanizer/Resources/translations/difference.af.yml)
- [Bulgarian] (src/Coduo/PHPHumanizer/Resources/translations/difference.bg.yml)
- [Indonesian] (src/Coduo/PHPHumanizer/Resources/translations/difference.id.yml)
- [Chinese Simplified] (src/Coduo/PHPHumanizer/Resources/translations/difference.zh_CN.yml)
- [Spanish] (src/Coduo/PHPHumanizer/Resources/translations/difference.es.yml)
- [Ukrainian] (src/Coduo/PHPHumanizer/Resources/translations/difference.uk.yml)
- [Danish] (src/Coduo/PHPHumanizer/Resources/translations/difference.da.yml)
- [Thai] (src/Coduo/PHPHumanizer/Resources/translations/difference.th.yml)
Credits
This lib was inspired by Java Humanize Lib && Rails Active Support
All versions of php-humanizer with dependencies
symfony/intl Version ~2.3|~3.4|~4.0
symfony/config Version ~2.3|~3.4|~4.0
symfony/translation Version ~3.4|~4.0
symfony/yaml Version ~2.3|~3.4|~4.0