PHPackages                             brazanation/states - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. brazanation/states

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

brazanation/states
==================

Provides Brazilian States

257895[1 PRs](https://github.com/brazanation/php-states/pulls)PHP

Since May 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/brazanation/php-states)[ Packagist](https://packagist.org/packages/brazanation/states)[ RSS](/packages/brazanation-states/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Brazanation States
==================

[](#brazanation-states)

[![Build Status](https://camo.githubusercontent.com/89f88419868fbc9cd0a3115f97b3148f75ee099467d0c617c7b194dab28ce447/68747470733a2f2f7472617669732d63692e6f72672f6272617a616e6174696f6e2f7068702d7374617465732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/brazanation/php-states)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/50f3928be1820859b093497b0362942dc1a5a22de473c312c47c4c5fa2f55fee/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6272617a616e6174696f6e2f7068702d7374617465732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/brazanation/php-states/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/11506b3527dbeefa92ef2fdb5d10256b8896ad09c747d77a28c5da34a7e0870b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6272617a616e6174696f6e2f7068702d7374617465732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/brazanation/php-states/?branch=master)[![StyleCI](https://camo.githubusercontent.com/e05df9d1900feb19b876a0af6f9c686a3b5e937a25db6ab588bceb0845b51ea9/68747470733a2f2f7374796c6563692e696f2f7265706f732f38303734363831362f736869656c64)](https://styleci.io/repos/80746816)

A PHP library to provide Brazilian States safer, easier and fun!

Installation
------------

[](#installation)

Install the library using [composer](http://getcomposer.org/). 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

[](#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

[](#license)

MIT, hell yeah!

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/966337?v=4)[Antonio Spinelli](/maintainers/tonicospinelli)[@tonicospinelli](https://github.com/tonicospinelli)

---

Top Contributors

[![tonicospinelli](https://avatars.githubusercontent.com/u/966337?v=4)](https://github.com/tonicospinelli "tonicospinelli (8 commits)")[![robmachado](https://avatars.githubusercontent.com/u/1437008?v=4)](https://github.com/robmachado "robmachado (3 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (2 commits)")[![ppKrauss](https://avatars.githubusercontent.com/u/1651447?v=4)](https://github.com/ppKrauss "ppKrauss (2 commits)")

---

Tags

brasilbrazabrazilbrazilianestadosphpphp7states

### Embed Badge

![Health badge](/badges/brazanation-states/health.svg)

```
[![Health](https://phpackages.com/badges/brazanation-states/health.svg)](https://phpackages.com/packages/brazanation-states)
```

###  Alternatives

[anerg2046/helper

some helper libaray function

2314.0k2](/packages/anerg2046-helper)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
