Download the PHP package coduo/php-humanizer without Composer
On this page you can find all versions of the php package coduo/php-humanizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Rated 5.00 based on 1 reviews
Informations about the package php-humanizer
PHP Humanizer
Tests
- - 4.x
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
Remove shortcodes
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
Aeon Calendar
Aeon PHP is a date&time oriented set of libraries.
Currently we support following languages:
- Azerbaijani
- English
- Polish
- German
- Turkish
- French
- Português - Brasil
- Italian
- Dutch
- Русский
- Norwegian
- Afrikaans
- Bulgarian
- Indonesian
- Chinese Simplified
- Chinese Taiwan
- Spanish
- Ukrainian
- Danish
- Thai
- Japanese
- Romanian
Development
After downloading library update dependencies:
In order to check lowest possible versions of dependencies add
`
Execute test suite:
Run CS Fixer
Credits
This lib was inspired by Java Humanize Lib && Rails Active Support
All versions of php-humanizer with dependencies
symfony/translation Version ^4.4|^5.0|^6.0
symfony/yaml Version ^4.4|^5.0|^6.0
aeon-php/calendar Version ^0.16.1 || ^1.0