Last Updated: February 25, 2016
·
2.623K
· 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

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Did you know?

PHP applications still send a browser full of JavaScript. Hardening the server does not inventory the payment, analytics, and plugin scripts that run after the HTML is delivered.

Security insights from Cside