appstract/pakketpartner-php-client
PHP Client for the Pakketpartner API
Maintainers
Package info
github.com/appstract/pakketpartner-php-client
pkg:composer/appstract/pakketpartner-php-client
Requires
- php: ^7.0|^8.0
- jenssegers/model: ^1.2
Requires (Dev)
- phpunit/phpunit: 5.*
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 0fd972a785e237234cc79e394e827e5db2d6117e
- Gijs Jorissen <gijs.woop@appstract.nl>
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
PHP Client for the Pakketpartner API
Installation
You can install the package via composer:
composer require appstract/pakketpartner-php-client
Usage
Setup the connection.
use Appstract\Pakketpartner\Connection; use Appstract\Pakketpartner\Pakketpartner; $connection = new Connection(); $connection->setApiToken('yourapitoken'); $pakketpartner = new Pakketpartner($connection);
Use a method to handle entities.
use Appstract\Pakketpartner\Pakketpartner; $shipment = Pakketpartner::shipment(); $shipment->order_reference = 'Appstract'; $shipment->save();
Testing
composer test
Contributing
Contributions are welcome, thanks to y'all :)
About Appstract
Appstract is a small team from The Netherlands. We create (open source) tools for Web Developers and write about related subjects on Medium. You can follow us on Twitter, buy us a beer or support us on Patreon.
License
The MIT License (MIT). Please see License File for more information.
