PHPackages                             fhferreira/correios-php-fork - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. fhferreira/correios-php-fork

ActiveLibrary[HTTP &amp; Networking](/categories/http)

fhferreira/correios-php-fork
============================

Uma maneira fácil de interagir com as principais funcionalidades dos Correios.

v1.0.1(1y ago)062.5k↓42%MITPHPPHP ~5.6|~7.0|~8.0

Since Jan 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fhferreira/correios-php-fork)[ Packagist](https://packagist.org/packages/fhferreira/correios-php-fork)[ Docs](https://github.com/fhferreira/correios-php-fork)[ RSS](/packages/fhferreira-correios-php-fork/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Correios PHP SDK
================

[](#correios-php-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/944ac21288aeb3602f4fc71cd915e05d33af5d461acccbf87ce956d6c0f49aa8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c79696e676c75736361732f636f727265696f732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flyingluscas/correios-php)[![CircleCI](https://camo.githubusercontent.com/1cd7ea1ed00bd53fbfc3066aaa978723b2282df7f17869330705649994367cc4/68747470733a2f2f696d672e736869656c64732e696f2f636972636c6563692f70726f6a6563742f6769746875622f666c79696e676c75736361732f636f727265696f732d7068702e7376673f7374796c653d666c61742d737175617265)](https://circleci.com/gh/flyingluscas/correios-php)[![Codecov](https://camo.githubusercontent.com/8c74722978f6cdd63c6d679b1825c995cdd8de047893a092c7bfbd26b376a349/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f666c79696e676c75736361732f636f727265696f732d7068702e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/flyingluscas/correios-php)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/ea6984b66398efa178a5fa2bf1d8f1daa620f6cdc395d3de62fea84043de89a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c79696e676c75736361732f636f727265696f732d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flyingluscas/correios-php)

Uma maneira fácil de interagir com as principais funcionalidades dos [Correios](https://correios.com.br).

Funcionalidades
---------------

[](#funcionalidades)

- [Consultar CEP](#consultar-cep)
- [Calcular Preços e Prazos](#calcular-pre%C3%A7os-e-prazos)

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

[](#instalação)

Via Composer

```
$ composer require fhferreira/correios-php-fork
```

Uso
---

[](#uso)

### Consultar CEP

[](#consultar-cep)

Encontrar endereço pelo CEP consultando diretamente o [WebService](https://apps.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl) dos Correios.

```
use FlyingLuscas\Correios\Client;

require 'vendor/autoload.php';

$correios = new Client;

$correios->zipcode()
    ->find('01001-000');

/*

Resultado:

[
    'zipcode' => '01001-000',
    'street' => 'Praça da Sé',
    'complement' => [
        'lado ímpar',
    ],
    'district' => 'Sé',
    'city' => 'São Paulo',
    'uf' => 'SP',
]
*/
```

### Calcular Preços e Prazos

[](#calcular-preços-e-prazos)

Calcular preços e prazos de serviços de entrega (Sedex, PAC e etc), com **suporte a multiplos objetos** na mesma consulta.

```
use FlyingLuscas\Correios\Client;
use FlyingLuscas\Correios\Service;

require 'vendor/autoload.php';

$correios = new Client;

$correios->freight()
    ->origin('01001-000')
    ->destination('87047-230')
    ->services(Service::SEDEX, Service::PAC)
    ->item(16, 16, 16, .3, 1) // largura, altura, comprimento, peso e quantidade
    ->item(16, 16, 16, .3, 3) // largura, altura, comprimento, peso e quantidade
    ->item(16, 16, 16, .3, 2) // largura, altura, comprimento, peso e quantidade
    ->calculate();

/*

Resultados:

[
    [
        'name' => 'Sedex',
        'code' => 40010,
        'price' => 51,
        'deadline' => 4,
        'error' => [],
    ],
    [
        'name' => 'PAC',
        'code' => 41106,
        'price' => 22.5,
        'deadline' => 9,
        'error' => [],
    ],
]
*/
```

Change log
----------

[](#change-log)

Consulte [CHANGELOG](.github/CHANGELOG.md) para obter mais informações sobre o que mudou recentemente.

Testando
--------

[](#testando)

```
$ composer test
```

Contribuindo
------------

[](#contribuindo)

Consulte [CONTRIBUTING](.github/CONTRIBUTING.md) para obter mais detalhes.

Segurança
---------

[](#segurança)

Se você descobrir quaisquer problemas relacionados à segurança, envie um e-mail para  em vez de usar as issues.

Créditos
--------

[](#créditos)

- [Lucas Pires](https://github.com/flyingluscas)
- [Todos os contribuidores](../../contributors)

Licença
-------

[](#licença)

A Licença MIT (MIT). Consulte o [arquivo de licença](LICENSE.md) para obter mais informações.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance43

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community7

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 ~1495 days

Total

2

Last Release

455d ago

PHP version history (2 changes)v1.0PHP ~5.6|~7.0

v1.0.1PHP ~5.6|~7.0|~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6737936990660260df87570e586c254abe975be9f0a7f3964abf38ed5012b4b7?d=identicon)[fhferreira](/maintainers/fhferreira)

---

Top Contributors

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

---

Tags

correioscepfreterastreioflyingluscascorreios-phpcalculo

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fhferreira-correios-php-fork/health.svg)

```
[![Health](https://phpackages.com/badges/fhferreira-correios-php-fork/health.svg)](https://phpackages.com/packages/fhferreira-correios-php-fork)
```

###  Alternatives

[flyingluscas/correios-php

Uma maneira fácil de interagir com as principais funcionalidades dos Correios.

141362.4k3](/packages/flyingluscas-correios-php)[stavarengo/php-sigep

Integração com Web Service do Correios. Gera etiquetas, consulta preços e prazos, imprime etiquetas e PLP, etc.

364315.8k2](/packages/stavarengo-php-sigep)[flyingluscas/viacep-php

ViaCEP PHP SDK

3640.2k](/packages/flyingluscas-viacep-php)[claudsonm/cep-promise-php

Busca por CEP utilizando Promises nos serviços dos Correios, ViaCEP, CepAberto e outros.

3120.0k](/packages/claudsonm-cep-promise-php)[adereldo/correios

Consulta de cep,rastreio em site do correios

121.4k](/packages/adereldo-correios)[jhowbhz/apigratis-sdk-php

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

183.6k](/packages/jhowbhz-apigratis-sdk-php)

PHPackages © 2026

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