stajor/israel-post

以色列邮政服务的PHP API

1.0.1 2020-09-20 16:03 UTC

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许可证条款提供。