stajor/israel-post

PHP API for Israel Post service

1.0.1 2020-09-20 16:03 UTC

This package is auto-updated.

Last update: 2022-05-20 19:53:12 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.