codetyme / postal
Laravel 印度邮政编码包。
1.0.3
2022-10-11 09:00 UTC
Requires
- guzzlehttp/guzzle: ^7.0.1
This package is auto-updated.
Last update: 2024-09-11 18:10:54 UTC
README
Laravel 印度邮政编码包。
邮政索引号码(PIN)在印度通常被称为PIN码/邮政编码。它是邮政编码系统中国邮政办公室号码中的一个代码,用于对邮件进行分类。PIN码由六位数字组成。
要求
快速安装
composer require codetyme/postal:"^1.0"
如何使用
在你的控制器中
public static function FindByPincode(\Codetyme\Postal\Postal $postal){ return $postal->pin('400001'); }
public static function FindByPostOffice(\Codetyme\Postal\Postal $postal){ return $postal->branch('Mumbai'); }
API以JSON格式返回响应。响应中的 状态
字段设置为 SUCCESS
或 ERROR
,消息
字段将返回针对请求的消息,而 邮局
字段将返回数据。
感谢
许可
MIT 许可证(MIT)。请参阅许可文件获取更多信息。