stajor / israel-post
PHP API for Israel Post service
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-11-21 01:08:45 UTC
README
Installation
$ composer require stajor/israel-post
Usage
<?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);
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/Stajor/israel-post. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
License
The gem is available as open source under the terms of the MIT License.