PHPackages                             cotapreco/postmon - 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. [API Development](/categories/api)
4. /
5. cotapreco/postmon

ActiveLibrary[API Development](/categories/api)

cotapreco/postmon
=================

It's just another client for Postmon API

1.1.0(10y ago)21781[1 issues](https://github.com/CotaPreco/Postmon/issues)[1 PRs](https://github.com/CotaPreco/Postmon/pulls)MITPHPPHP ~5.5

Since Jun 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CotaPreco/Postmon)[ Packagist](https://packagist.org/packages/cotapreco/postmon)[ RSS](/packages/cotapreco-postmon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

`CotaPreco\Postmon` [![Build Status](https://camo.githubusercontent.com/f37c1bced4f01f5e6eca74bc09ffe8dadfc87b95acdb08190cfc5dcbe3e2e951/68747470733a2f2f7472617669732d63692e6f72672f436f7461507265636f2f506f73746d6f6e2e737667)](https://travis-ci.org/CotaPreco/Postmon)
==========================================================================================================================================================================================================================================================================

[](#cotaprecopostmon-)

```
use CotaPreco\Postmon\Cep;
use CotaPreco\Postmon\Postmon;

$postmon = new Postmon();

/* @var CotaPreco\Postmon\PartialAddress $address */
$address = $postmon->findAddressByCep(Cep::fromString(''));
```

Qualquer requisição na API sempre irá retornar um [`PartialAddress`](https://github.com/CotaPreco/Postmon/blob/master/src/CotaPreco/Postmon/PartialAddress.php), independente de conter todos os campos para um endereço na resposta da API do Postmon.

- **PartialAddress** é serializável para JSON *`implements JsonSerializable`*, então: `json_encode($address)` é absolutamente possível;
- Campos com o valor `null` (campos que não estão presentes na resposta da API) são omitidos da serialização para JSON;
- `@throws CepNotFoundException` para qualquer resposta da API que o código de status HTTP seja diferente de **200** — [talvez você queira melhorar isso](https://github.com/CotaPreco/Postmon/pulls).

Sim, o composer!
----------------

[](#sim-o-composer)

```
$ composer require cotapreco/postmon dev-master

```

License
-------

[](#license)

[MIT](https://raw.githubusercontent.com/CotaPreco/Postmon/master/LICENSE) © Cota Preço, 2015.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Every ~7 days

Total

2

Last Release

3992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/428692cd8f2f70144c44fa31d0ca3ed5ad81fe523ec936d31f3cc452384fc160?d=identicon)[CentaurWarchief](/maintainers/CentaurWarchief)

---

Top Contributors

[![andreyvital](https://avatars.githubusercontent.com/u/967317?v=4)](https://github.com/andreyvital "andreyvital (34 commits)")

---

Tags

cepconsultaenderecopostmon

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/cotapreco-postmon/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[jhowbhz/apigratis-sdk-php

This package is free and can be used for API Brazil website functions

183.6k](/packages/jhowbhz-apigratis-sdk-php)[minime/brasil-endereco

Brasil/Endereco é um componente de consulta que facilita a obtenção de endereços a partir do site dos correios

153.1k](/packages/minime-brasil-endereco)

PHPackages © 2026

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