litwicki / common
Helper functions and utilities.
Installs: 1 527
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
pkg:composer/litwicki/common
Requires
- php: >=5.3
Suggests
- symfony/yaml: To use yaml based configuration.
This package is not auto-updated.
Last update: 2025-12-20 23:15:25 UTC
README
A set of helper functions and utilities with a wide variety of use.
Litwicki\Common\Commonis great for various string manipulations, validations, and quick formatting.Litwicki\Common\Formprovides helper methods to build arrays and formselectfor common city, state, country elements.Litwicki\Common\Httpprovides a helper to parse the Http User Agent to a more readable format.Litwicki\Common\Objectincludes methods to convert objects to xml, json, array, and vice versa.Litwicki\Common\TimeAgoallows you to parse aDateTimeinto a readable string of hours, minutes, and/or seconds ago.
Install
$ composer require "litwicki/common"
Usage
Include each of the helpers individually.
use Litwicki\Common\Common;
use Litwicki\Common\Form;
use Litwicki\Common\Http;
use Litwicki\Common\Object;
use Litwicki\Common\TimeAgo;