PHPackages                             celsonery/laravel-brasilapi - 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. celsonery/laravel-brasilapi

ActiveLibrary[API Development](/categories/api)

celsonery/laravel-brasilapi
===========================

A little Laravel package for integration with Brasil Api.

1.1.2(1mo ago)022MITPHPPHP ^8.2CI passing

Since Apr 30Pushed 1mo agoCompare

[ Source](https://github.com/celsonery/laravel-brasilapi)[ Packagist](https://packagist.org/packages/celsonery/laravel-brasilapi)[ Docs](https://github.com/celsonery/laravel-brasilapi)[ RSS](/packages/celsonery-laravel-brasilapi/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

Laravel BrasilApi Package - By Celso Nery
=========================================

[](#laravel-brasilapi-package---by-celso-nery)

A little package utility to work with Brasil Api services
---------------------------------------------------------

[](#a-little-package-utility-to-work-with-brasil-api-services)

[![Maintainer](https://camo.githubusercontent.com/45e1990f156099c483e9b05133871192bcb8358d26633c38d7a989da6a16327c/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65722d4063656c736f6e6572792d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/celsonery)[![Latest Version on Packagist](https://camo.githubusercontent.com/c4ed7d5f740aeb984ad4712fa4ce50b118c7c74efc8b45e0ff1a3ab42f4a0f6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656c736f6e6572792f6c61726176656c2d62726173696c6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/celsonery/laravel-brasilapi)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Tests Action Status](https://camo.githubusercontent.com/7c2a00abddc4ee54c8bdda12aec0b7e588dd90a564eafef74e8b4df5f13714de/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656c736f6e6572792f6c61726176656c2d62726173696c6170692f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/celsonery/laravel-brasilapi/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5671f88ba5653a50361ce2b0fd4ad16c2c3adb256df4af03921333ad595e3b74/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656c736f6e6572792f6c61726176656c2d62726173696c6170692f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/celsonery/laravel-brasilapi/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/083940e22e31300457eca4d1e0d7a608288b65850fd139652c64d4a0bdca8aee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656c736f6e6572792f6c61726176656c2d62726173696c6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/celsonery/laravel-brasilapi)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require celsonery/brasilapi
```

You can publish the config file with:

```
php artisan brasilapi:install
```

or

```
php artisan vendor:publish --tag="brasilapi-config"
```

This is the contents of the published config file:

```
return [
    base_url => env('BASE_URL', 'https://brasilapi.com.br/api')
];
```

Usage
-----

[](#usage)

- Via Facade

```
use CelsoNery\BrasilApi\Facades\BrasilApi;

$response = BrasilApi::cep('00100001');

return $response;
```

- Via DI

```
use CelsoNery\BrasilApi\BrasilApiService;

public function index(BrasilApiService $service)
{
    return $service->cep('00100001');
}
```

Testing
-------

[](#testing)

```
composer tests
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Celso Nery](https://github.com/celsonery)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance92

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

39d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3494ad3c6faeafb657ccf282f2bbef26c0a9f275136c455fe146c720e021151?d=identicon)[Celso Nery](/maintainers/Celso%20Nery)

---

Top Contributors

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

---

Tags

laravelBankcepcnpjbrasilcelsonerylaravel-brasilapi

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/celsonery-laravel-brasilapi/health.svg)

```
[![Health](https://phpackages.com/badges/celsonery-laravel-brasilapi/health.svg)](https://phpackages.com/packages/celsonery-laravel-brasilapi)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[resend/resend-laravel

Resend for Laravel

1212.2M8](/packages/resend-resend-laravel)[essa/api-tool-kit

set of tools to build an api with laravel

53286.5k](/packages/essa-api-tool-kit)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[joggapp/laravel-aws-sns

Laravel package for the SNS events by AWS

3175.9k](/packages/joggapp-laravel-aws-sns)

PHPackages © 2026

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