Last Updated: February 25, 2016
·
2.373K
· borisguery

Inflexible, Inflector library for PHP

Inflexible aims to gather a collection of commonly used Inflectors into a single lib.

Some examples:

Inflexible::humanByte(1048576);
// 1.00 MB

Inflexible::textualize(1025433);
// One Million, Twenty Five Thousand, Four Hundred and Thirty Three

Inflexible::camelize('foo_bar');
// FooBar

Inflexible::humanize('FooBar');
// Foo Bar

Installation (get composer.phar):

$ php composer.phar require borisguery/inflexible

Checkout the Inflexible homepage