brazanation/states

Provides Brazilian States

Installs: 789

Dependents: 0

Suggesters: 0

Security: 0

Stars: 25

Watchers: 2

Forks: 5

Open Issues: 1

pkg:composer/brazanation/states

dev-master 2018-02-17 09:22 UTC

This package is auto-updated.

Last update: 2025-09-29 02:14:59 UTC


README

Build Status Scrutinizer Code Quality Code Coverage StyleCI

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!