New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

saade/cep-php

Async, high availability brazilian CEP finder with multiple providers for redundancy.
8,252 7

Larablocks Analysis

saade/cep-php works with Laravel 10 to 13 (latest release v2.0.0, Oct 13, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Oct 13, 2026)
  • 455 downloads a month (needs 10,000)
  • 7 GitHub stars (needs 100)

State

Maintained
  • Last stable release: Oct 13, 2026.
  • 2 releases in the last 12 months.
  • First released: Oct 26, 2023.
  • Monthly downloads: 455.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require saade/cep-php
Latest Version:v2.0.0
PHP:^8.1
Laravel:10 – 13
License:MIT
Last Updated:Nov 25, 2026
Links: GitHub  ·  Packagist
Maintainer: saade

High availability brazilian CEP finder with service redundancy

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads Plumb score

Installation

You can install the package via composer:

composer require saade/cep-php

Usage

use Saade\Cep\Cep;

$cep = Cep::get('28895-190');

$cep->cep; // 28895190
$cep->state; // RJ
$cep->city; // Rio das Ostras
$cep->neighborhood; // Costazul
$cep->street; // Rua Nelson Pecegueiro do Amaral
$cep->provider; // open-cep / correios / viacep / widenet / correios-alt / brasil-api

Cep::get() returns null when no provider can resolve the CEP.

How it works

  1. OpenCEP is queried first.
  2. If it can't resolve the CEP, Correios, ViaCEP, WideNet, Correios (alt) and BrasilAPI are queried concurrently and the first one to answer wins.

You may also race the providers of your choice:

use Saade\Cep\Cep;
use Saade\Cep\Providers\BrasilApiProvider;
use Saade\Cep\Providers\ViaCepProvider;

$cep = Cep::race('28895-190', [ViaCepProvider::class, BrasilApiProvider::class]);

Or query a single one, which throws when the CEP can't be resolved:

use Saade\Cep\Providers\ViaCepProvider;

$cep = ViaCepProvider::get('28895-190');

Testing

composer test

composer test:live runs the suite that hits the real providers.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

jansenfelipe/cep-gratis

Com esse pacote você poderá realizar consultas de CEP gratuitamente.

10,641 65
rlacerda83/address-search-microservice

Microservice for postal code search.

5 3
renatoneto/laravel4-cep

Consulta de CEP

10 1
gabrielmoura/laravel-cep

A simple Laravel package to get CEP information

4,919 4
saade/filament-timeline

This is my package filament-timeline

3,751 2

Version History

Version Released PHP Laravel License
v2.0.0 ^8.1 MIT
v1.2.0 ^8.1 MIT
v1.1.0 ^8.1 MIT
v1.0.1 ^8.1 MIT
v1.0.0 ^8.1 ^10.0 MIT