承接 celsonery/laravel-viacep 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

celsonery/laravel-viacep

最新稳定版本:1.0.0

Composer 安装命令:

composer require celsonery/laravel-viacep

包简介

A little Laravel package for integration with viacep api.

README 文档

README

A little package utility to work with ViaCep web service

Maintainer Latest Version on Packagist Software License GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require celsonery/viacep

You can publish the config file with:

php artisan viacep:install

or

php artisan vendor:publish --tag="viacep-config"

This is the contents of the published config file:

return [
    base_url => env('BASE_URL', 'https://viacep.com.br/ws')
];

Usage

  • Via Facade
use CelsoNery\ViaCep\Facades\BrasilApi;

$response = ViaCep::get('00100001');

return $response;
  • Via DI
use Celso\ViaCep\ViaCepService;

public function index(ViaCepService $viaCep)
{
    return $viaCep->get('00100001');
}

Testing

composer tests

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.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 10
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-30