Brazanation States
, (*1)
A PHP library to provide Brazilian States safer, easier and fun!, (*2)
Installation
Install the library using [composer][1]. Add the following to your composer.json:, (*3)
{
"require": {
"brazanation/states": "dev-master"
}
}
Now run the install command., (*4)
$ composer.phar install
or, (*5)
$ composer require brazanation/states dev-master
Usage
use Brazanation\States\State;
$state = State::acre();
echo $state->fullName; // Acre
echo $state->shortName; // AC
echo $state->code; // 12
echo $state->timezone; // America/Rio_Branco
or, (*6)
use Brazanation\States\Acre;
$state = new Acre();
echo $state->fullName; // Acre
echo $state->shortName; // AC
echo $state->code; // 12
echo $state->timezone; // America/Rio_Branco
License
MIT, hell yeah!, (*7)