PHP code example of stajor / israel-post
1. Go to this page and download the library: Download stajor/israel-post library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
stajor / israel-post example snippets
# 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);