litwicki/common – https://github.com/litwicki/common
A set of helper functions and utilities with a wide variety of use.
- cURL class
- Several commonly used selection arrays for forms (month, year, country, state, etc)
$ composer require "litwicki/common"
Build an array of states, keyed by abbreviation:
$ use LitwickiCommonCommon; $ $states = Common::getStateOptions(); $ //$states['IL'] = 'Illinois'; //example
Build a cURL object..
$ use LitwickiCommoncURL; $ $curl = new cURL(); $ $response = $curl->get('http://example.com");