dev-master
9999999-dev http://jakelitwicki.comHelper functions and utilities.
MIT
The Requires
- php >=5.3
by Jake Litwicki
component library helper
Helper functions and utilities.
A set of helper functions and utilities with a wide variety of use., (*1)
Litwicki\Common\Common
is great for various string manipulations, validations, and quick formatting.Litwicki\Common\Form
provides helper methods to build arrays and form select
for common city, state, country elements.Litwicki\Common\Http
provides a helper to parse the Http User Agent to a more readable format.Litwicki\Common\Object
includes methods to convert objects to xml, json, array, and vice versa.Litwicki\Common\TimeAgo
allows you to parse a DateTime
into a readable string of hours, minutes, and/or seconds ago.$ composer require "litwicki/common"
Include each of the helpers individually., (*2)
use Litwicki\Common\Common; use Litwicki\Common\Form; use Litwicki\Common\Http; use Litwicki\Common\Object; use Litwicki\Common\TimeAgo;
Helper functions and utilities.
MIT
component library helper