brazanation / states
Provides Brazilian States
dev-master
2018-02-17 09:22 UTC
Requires
- php: ^7.0
- symfony/console: ^3.0
Requires (Dev)
- phpunit/phpunit: ^6.4
- scrutinizer/ocular: ^1.3
- squizlabs/php_codesniffer: ^2.6
This package is auto-updated.
Last update: 2024-10-29 04:58:52 UTC
README
A PHP library to provide Brazilian States safer, easier and fun!
Installation
Install the library using composer. Add the following to your composer.json
:
{ "require": { "brazanation/states": "dev-master" } }
Now run the install
command.
$ composer.phar install
or
$ 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
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!