{"id":15025118,"url":"https://github.com/rafaellaurindo/laravel-brasilapi","last_synced_at":"2025-04-12T13:12:48.521Z","repository":{"id":62532629,"uuid":"427211046","full_name":"rafaellaurindo/laravel-brasilapi","owner":"rafaellaurindo","description":"A Laravel package that provides a simple way to use the Brasil API endpoints.","archived":false,"fork":false,"pushed_at":"2024-04-15T19:14:33.000Z","size":32,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T13:12:43.069Z","etag":null,"topics":["banks","banks-list","brasil","brasilapi","cep","cnpj","laravel","laravel-framework","laravel-package"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rafaellaurindo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"rafaellaurindo"}},"created_at":"2021-11-12T02:44:55.000Z","updated_at":"2024-12-10T21:39:46.000Z","dependencies_parsed_at":"2024-09-30T10:40:33.404Z","dependency_job_id":null,"html_url":"https://github.com/rafaellaurindo/laravel-brasilapi","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":0.1923076923076923,"last_synced_commit":"27cb8a2fecfb04e641108cb1205a4368a35157a1"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaellaurindo%2Flaravel-brasilapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaellaurindo%2Flaravel-brasilapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaellaurindo%2Flaravel-brasilapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rafaellaurindo%2Flaravel-brasilapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rafaellaurindo","download_url":"https://codeload.github.com/rafaellaurindo/laravel-brasilapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248571870,"owners_count":21126522,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["banks","banks-list","brasil","brasilapi","cep","cnpj","laravel","laravel-framework","laravel-package"],"created_at":"2024-09-24T20:01:32.476Z","updated_at":"2025-04-12T13:12:48.502Z","avatar_url":"https://github.com/rafaellaurindo.png","language":"PHP","funding_links":["https://github.com/sponsors/rafaellaurindo"],"categories":[],"sub_categories":[],"readme":"# Laravel Brasil API\n\n[![Latest Stable Version](http://poser.pugx.org/rafaellaurindo/laravel-brasilapi/v)](https://packagist.org/packages/rafaellaurindo/laravel-brasilapi)\n[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/rafaellaurindo/laravel-brasilapi/run-tests?label=tests)](https://github.com/rafaellaurindo/laravel-brasilapi/actions?query=workflow%3Arun-tests+branch%3Amain)\n[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/rafaellaurindo/laravel-brasilapi/Check%20\u0026%20fix%20styling?label=code%20style)](https://github.com/rafaellaurindo/laravel-brasilapi/actions?query=workflow%3A\"Check+%26+fix+styling\"+branch%3Amain)\n[![License](https://img.shields.io/github/license/rafaellaurindo/laravel-brasilapi)](https://github.com/rafaellaurindo/laravel-brasilapi/blob/main/LICENSE.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/rafaellaurindo/laravel-brasilapi)](https://packagist.org/packages/rafaellaurindo/laravel-brasilapi)\n\nA Laravel package that provides a simple way to use the [Brasil API](https://brasilapi.com.br/) endpoints.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require rafaellaurindo/laravel-brasilapi\n```\n\nYou can publish the config file with:\n\n```bash\nphp artisan vendor:publish --provider=\"RafaelLaurindo\\BrasilApi\\BrasilApiServiceProvider\" --tag=\"config\"\n```\n\n## Usage\n\nYou can use the methods from `Dependency Injection`, `Facade` or `helper`.\n\nUsing from Dependency Injection:\n\n```php\nuse RafaelLaurindo\\BrasilApi\\BrasilApi;\n\nclass ExampleController\n{\n    public function searchZipCode(BrasilApi $brasilApi)\n    {\n        return response()-\u003ejson($brasilApi-\u003ecep('01431000'));\n    }\n}\n```\n\nUsing from Facade:\n\n```php\nuse BrasilApi;\n\nBrasilApi::cep('01431000');\n```\n\nUsing from helper:\n\n```php\nbrasilApi()-\u003egetBank(77);\n```\n\nAfter you've installed the package. All the following examples use the facade. Don't forget to import it at the top of your file.\n\n```php\nuse BrasilApi;\n```\n\n### Searching address by zip code:\n\n```php\nBrasilApi::cep('01431000');\n```\n\n### Get Brazilian banks list:\n\n```php\nBrasilApi::getBanks();\n```\n\n### Get a bank from code:\n\n```php\nBrasilApi::getBank(77);\n```\n\n### Find company information using the CNPJ:\n\n```php\nBrasilApi::findCnpj('19131243000197');\n```\n\n## Testing\n\n```bash\ncomposer test\n```\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n## Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n## Credits\n\n- [Rafael Laurindo](https://github.com/rafaellaurindo)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaellaurindo%2Flaravel-brasilapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frafaellaurindo%2Flaravel-brasilapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frafaellaurindo%2Flaravel-brasilapi/lists"}