gabrielmoura / laravel-cep
A simple Laravel package to get CEP information
1.0
2023-12-09 17:57 UTC
Requires
- php: ^8.2
- illuminate/http: *
Requires (Dev)
- laravel/pint: ^1.13
- orchestra/testbench: ^8.0
- phpstan/phpstan: ^1.10
Suggests
- illuminate/redis: ^v10
README
A simple Laravel package to get CEP information
Providers
Configuration
If not defined, ViaCep will be used.
// config/services.php 'cep'=>[ 'endpoint' => \Gabrielmoura\LaravelCep\EndpointOption::VIACEP, ]
Consider installing illuminate/redis
for automatic caching.
Usage
Container
use Gabrielmoura\LaravelCep\CepService; app(CepService::class)->find(cep:'01001000',cached: true);
Facade
use Gabrielmoura\LaravelCep\Cep; Cep::find('01001000',cached: true);
Compatibility
- Laravel 10.x