Ruby like ActiveSupport for PHP

Ben Vinegar hat Rubys ActiveSupport nach PHP portiert.

Beispiel:


require_once('ActiveSupport.php');

_(14)->ordinalize(); # Outputs "14th"

_(7.3)->megabytes(); # Returns number of bytes in 7.3 megabytes

_("an example sentence")->endsWith("sentence"); # Returns true

Possibly related posts (automatically generated)