Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

appstract/pakketpartner-php-client

Repository files navigation

Pakketpartner PHP Client

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.