PHPackages                             radig/cake\_brazil - 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. radig/cake\_brazil

AbandonedCakephp-plugin

radig/cake\_brazil
==================

CakePHP Brazil: Conjunto de funcionalidades e informações úteis para sistemas brasileiros

1.0.0(12y ago)3511[1 issues](https://github.com/radig/cake_brazil/issues)MITPHPPHP &gt;=5.3.0

Since Oct 15Pushed 12y ago6 watchersCompare

[ Source](https://github.com/radig/cake_brazil)[ Packagist](https://packagist.org/packages/radig/cake_brazil)[ Docs](https://github.com/radig/cake_brazil)[ RSS](/packages/radig-cake-brazil/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Plugin Cake Brazil
==================

[](#plugin-cake-brazil)

Repositório de funcionalidades e informações úteis a sistemas brasileiros.
Este plugin não incluí tradução do CakePHP ou localização de dados, para estas tarefas
utilize o plugin [CakePtBr](https://github.com/jrbasso/cake_ptbr) ou [Locale](https://github.com/radig/locale)

Requisitos
----------

[](#requisitos)

- PHP &gt; 5.2.x
- CakePHP 2.x
- [Plugin DataSources](https://github.com/cakephp/datasources/)

Como usar
---------

[](#como-usar)

1. Primeiro faça o download dos arquivos. Sugerimos uma das opções abaixo:

### Usando Composer

[](#usando-composer)

Edite o arquivo de dependências da sua aplicação, incluindo a linha

```
"require": {
    "radig/cake_brazil" : "1.0.*"
}
```

### Usando submódulos do Git

[](#usando-submódulos-do-git)

Clone, faça o download ou coloque como submódulo este repositório

```
git submodule add git://github.com/radig/cake_brazil.git Plugin/CakeBrazil
```

1. Inicialize a tabela de cidades (*cities*):

```
cake schema create -p CakeBrazil
```

1. Carregue os modelos Uf (para os Estados brasileiros) ou City (para as cidades) onde for conveniente:

```
$this->loadModel('CakeBrazil.Uf');
```

1. Acesse os dados

```
$ufs = $this->Uf->find('list');
```

### Usando com Ajax

[](#usando-com-ajax)

Faça requisições no endereço **/cake\_brazil/cities/listByUf/\[ID\]** para ter acesso a lista
de cidades do estado com id = \[ID\].

Faça requisições no endereço **/cake\_brazil/cities/listAll/true** para ter acesso a lista
de todas as cidades, em ordem alfabética, agrupada por estados.

Faça requisições no endereço **/cake\_brazil/cities/listAll** para ter acesso a lista
de todas as cidades, em ordem alfabética, agrupada implicitamente por estados.

Licença
-------

[](#licença)

Licenciado sob a licença MIT, que em resumo destaca:

- O uso do plugin é livre e gratuíto, em qualquer situação
- É livre modificação e redistribuição do código
- Use o código por sua conta e risco
- Os autores e colaboradores não fornecem nenhum tipo de garantia explícita
    ou implícita

The MIT License

Copyright 2011 – 2012, Radig Soluções em TI

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the “Software”),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4590d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b5400117f71ee0df6868fd300a96fceb0405ee8e959ea2df3116387d41c5a83?d=identicon)[CauanCabral](/maintainers/CauanCabral)

---

Top Contributors

[![CauanCabral](https://avatars.githubusercontent.com/u/83092?v=4)](https://github.com/CauanCabral "CauanCabral (7 commits)")

---

Tags

cakephpbrbrazilbrasilufcidadesestados

### Embed Badge

![Health badge](/badges/radig-cake-brazil/health.svg)

```
[![Health](https://phpackages.com/badges/radig-cake-brazil/health.svg)](https://phpackages.com/packages/radig-cake-brazil)
```

###  Alternatives

[yiibr/yii2-br-validator

Provide validations and features for brazilian localization

14103.2k4](/packages/yiibr-yii2-br-validator)[jansenfelipe/cidades-gratis

Com esse pacote você poderá consultar, gratuitamente, Cidades diretamente no site do IBGE.

423.5k](/packages/jansenfelipe-cidades-gratis)[mixdinternet/cities

Pacote com os estados, cidades e bairros do Brasil

231.4k](/packages/mixdinternet-cities)

PHPackages © 2026

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