stajor / israel-post
以色列邮政服务的PHP API
1.0.1
2020-09-20 16:03 UTC
Requires
- php: >=7.4
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- psr/cache: ^1.0
- symfony/css-selector: ^5.0
- symfony/dom-crawler: ^5.0
Requires (Dev)
- phpunit/phpunit: ^9.0
- symfony/cache: ^5.1
- umpirsky/country-list: ^2.0
This package is auto-updated.
Last update: 2024-09-21 00:51:16 UTC
README
安装
$ composer require stajor/israel-post
使用方法
<?php # Any cache driver supports psr/cache $cache = new Symfony\Component\Cache\Adapter\ArrayAdapter(); $israelPost = new IsraelPost\IsraelPost($cache); # Tracking delivery $response = $israelPost->deliveryTracking()->track('EE123456789IL'); # Get rate for abroad letter delivery $country = 'RU'; $amount = 3; $weight = 200; $rate = $israelPost->deliveryRate()->abroad()->letter()->standardAirDeliveryRate($country, $amount, $weight);
贡献
欢迎在GitHub上提交bug报告和pull请求:https://github.com/Stajor/israel-post。本项目的目标是成为一个安全、友好的协作空间,贡献者应遵守贡献者公约的行为准则。
许可证
该宝石作为开源软件,根据MIT许可证条款提供。