Etiqueta: object

Lightweight string wrapper

Lightweight string wrapper README <?php use GranamStringStringObject; use GranamStringExceptionsWrongParameterType; $string = new StringObject(12345.678); echo $string; // string '12345.678' try { new StringObject(fopen('foo', 'rb')); } catch (WrongParameterType $stringException) { // Expected scalar or object with __toString method on strict mode, got resource....

This is a stand-alone PHP 7 (and PHP 5!) library for working with RGB, HSL, HSB/HSV, Hexadecimal, and CMYK colors. Create schemes, modify specific color properties, easily convert between color spaces, create gradients, and make color suggestions quickly and easily.

This is a stand-alone PHP 7 (and PHP 5!) library for working with RGB, HSL, HSB/HSV, Hexadecimal, and CMYK colors. Create schemes, modify specific color properties, easily convert between color spaces, create gradients, and make color suggestions quickly and easily. README...

Testing object factory for PHP

Testing object factory for PHP README PHPMachinist: Testing Object Factory What???!??! A Slightly less annoying way of creating database fixtures for PHP testing. It borrows heavily from several projects: https://github.com/chriskite/phactory https://github.com/thoughtbot/factory_girl https://github.com/ccollins/milkman https://github.com/notahat/machinist They’re totally awesome. Just either in the wrong...