appstract/pakketpartner-php-client

此包已被废弃且不再维护。未建议替代包。

Pakketpartner API 的 PHP 客户端

1.1.0 2021-07-05 09:57 UTC

This package is auto-updated.

Last update: 2022-06-05 11:47:51 UTC


README

Latest Version on Packagist Total Downloads Software License Build Status

Pakketpartner API 的 PHP 客户端(点击访问)

安装

您可以通过 composer 安装此包

composer require appstract/pakketpartner-php-client

使用方法

设置连接。

use Appstract\Pakketpartner\Connection;
use Appstract\Pakketpartner\Pakketpartner;

$connection = new Connection();

$connection->setApiToken('yourapitoken');

$pakketpartner = new Pakketpartner($connection);

使用方法处理实体。

use Appstract\Pakketpartner\Pakketpartner;

$shipment = Pakketpartner::shipment();

$shipment->order_reference = 'Appstract';

$shipment->save();

测试

composer test

贡献

欢迎贡献,感谢大家的贡献 :)

关于 Appstract

Appstract 是来自荷兰的一个小型团队。我们为 Web 开发者创建(开源)工具,并在 Medium 上撰写相关主题的文章。您可以在 Twitter 上关注我们,为我们买一杯啤酒,或在 Patreon 上支持我们。

许可证

MIT 许可证(MIT)。有关更多信息,请参阅许可证文件