PHPackages                             devwellington/brazilian-ddd-to-uf - 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. devwellington/brazilian-ddd-to-uf

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

devwellington/brazilian-ddd-to-uf
=================================

Um Helper para converter o DDD para a UF

0.1.1(11y ago)4191MITPHPPHP &gt;5.4

Since Aug 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/DevWellington/brazilian-ddd-to-uf)[ Packagist](https://packagist.org/packages/devwellington/brazilian-ddd-to-uf)[ Docs](https://github.com/DevWellington/brazilian-ddd-to-uf)[ RSS](/packages/devwellington-brazilian-ddd-to-uf/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

BrazilianDddToUF
================

[](#braziliandddtouf)

[![Code Climate](https://camo.githubusercontent.com/22d08f4e6343354da778de6e4a1a943630c0165b5e3803e104323bdb05b0e88b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f44657657656c6c696e67746f6e2f6272617a696c69616e2d6464642d746f2d75662f6261646765732f6770612e737667)](https://codeclimate.com/github/DevWellington/brazilian-ddd-to-uf)

O Brazilian DDD To UF atende as necessidades das aplicações que necessitam por algum movito converter (ou até validar) o Número do DDD de um telefone para a UF.

Requisitos
----------

[](#requisitos)

PHP 5.4 ou Superior.

Instalação
----------

[](#instalação)

A maneira mais fácil de instalar BrazilianDddToUF é utilizando o [Composer](http://getcomposer.org/). Criando um arquivo `composer.json`para o seu projeto, adicione:

```
{
    "require": {
        "DevWellington/brazilian-ddd-to-uf": "dev-master"
    }
}
```

E depois rode os comandos:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install

```

Agora inclua o autoload gerado pelo Composer para ter acesso à biblioteca:

```

Result:
MG
```

Exemplo 2

Converter DDD para Nome do Estado

```

Result:
Minas Gerais
```

Exemplo 3

Converter DDD para um Array com a UF e o Nome do Estado

```

Result:
array(2) {
  ["UF"]=>
  string(2) "MG"
  ["StateName"]=>
  string(12) "Minas Gerais"
}
```

Exemplo 4

Validar o DDD

```

Result:
bool(false)
```

\###License Esta biblioteca está licenciada sob a licença MIT - veja o arquivo de licença para mais detalhes.

\###Contato Fique à vontade em contactar gMail:  | twitter: @DevWellington

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance55

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

4287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9bda713f969ae9eff3208c56ff88fe770156a2869280df42a9dc85d2ae8b850b?d=identicon)[DevWellington](/maintainers/DevWellington)

---

Top Contributors

[![DevWellington](https://avatars.githubusercontent.com/u/2626209?v=4)](https://github.com/DevWellington "DevWellington (15 commits)")

---

Tags

helperphonestatesbrazilianuf

### Embed Badge

![Health badge](/badges/devwellington-brazilian-ddd-to-uf/health.svg)

```
[![Health](https://phpackages.com/badges/devwellington-brazilian-ddd-to-uf/health.svg)](https://phpackages.com/packages/devwellington-brazilian-ddd-to-uf)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[pragmarx/countries

PHP Countries and Currencies

1.9k3.3M18](/packages/pragmarx-countries)[bryanjhv/slim-session

Session middleware and helper for Slim framework 4.

233961.5k16](/packages/bryanjhv-slim-session)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.7M](/packages/dougsisk-laravel-country-state)[beste/json

A simple JSON helper to decode and encode JSON

4222.7M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3427.3M21](/packages/chillerlan-php-settings-container)

PHPackages © 2026

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