codetyme/postal
最新稳定版本:1.0.3
Composer 安装命令:
composer require codetyme/postal
包简介
Laravel indian postal code package.
README 文档
README
Laravel indian postal code package.
The term Postal Index Number (PIN) is popularly known as PIN code/Postal Code in India. It is a code in the post office number of the postal code system which is used in India Post for segregating the mails. The PIN code consists of six digits.
Requirements
PHP: ^7.3 or ^8.0
Laravel Framework
Quick Installation
composer require codetyme/postal:"^1.0"
How to use
In your controller
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 returns the response in JSON format. Status field in response is set to SUCCESS or ERROR, Message field will return message against the request and PostOffice field will return data.
Thanks
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-11