https://github.com/appstract/pakketpartner-php-client
PHP Client for the Pakketpartner API
https://github.com/appstract/pakketpartner-php-client
Last synced: 5 months ago
JSON representation
PHP Client for the Pakketpartner API
- Host: GitHub
- URL: https://github.com/appstract/pakketpartner-php-client
- Owner: appstract
- License: mit
- Archived: true
- Created: 2020-03-28T22:18:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-04T08:14:43.000Z (over 4 years ago)
- Last Synced: 2025-10-30T04:54:05.672Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 7
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Pakketpartner PHP Client
[](https://packagist.org/packages/appstract/pakketpartner-php-client)
[](https://packagist.org/packages/appstract/pakketpartner-php-client)
[](LICENSE.md)
[](https://travis-ci.org/appstract/pakketpartner-php-client)
PHP Client for the [Pakketpartner API](https://pakketpartner.nl/pakketpartner-rest-api/)
## Installation
You can install the package via composer:
``` bash
composer require appstract/pakketpartner-php-client
```
## Usage
Setup the connection.
``` php
use Appstract\Pakketpartner\Connection;
use Appstract\Pakketpartner\Pakketpartner;
$connection = new Connection();
$connection->setApiToken('yourapitoken');
$pakketpartner = new Pakketpartner($connection);
```
Use a method to handle entities.
```php
use Appstract\Pakketpartner\Pakketpartner;
$shipment = Pakketpartner::shipment();
$shipment->order_reference = 'Appstract';
$shipment->save();
```
## Testing
``` bash
composer test
```
## Contributing
Contributions are welcome, [thanks to y'all](https://github.com/appstract/pakketpartner-php-client/graphs/contributors) :)
## 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](https://medium.com/appstract). You can [follow us on Twitter](https://twitter.com/appstractnl), [buy us a beer](https://www.paypal.me/appstract/10) or [support us on Patreon](https://www.patreon.com/appstract).
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.