Download the PHP package iwd-nl/snelstart-php without Composer
On this page you can find all versions of the php package iwd-nl/snelstart-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download iwd-nl/snelstart-php
More information about iwd-nl/snelstart-php
Files in iwd-nl/snelstart-php
Package snelstart-php
Short Description Snelstart API toegepast in PHP
License GPL-3.0-or-later
Homepage https://github.com/iwd-nl/snelstart-php
Informations about the package snelstart-php
Snelstart B2B API
PHP client library to use the Snelstart B2B API.
Note that this library is not created, or maintained, by Snelstart.
Pre-word
This release will support both version 1 and version 2. Version 1 is considered deprecated, as Snelstart does not activly promote it anymore. Instructions on how to upgrade will be added when the next release takes place.
Installation
Installation is easy as 1, 2, 3 thanks to Composer.
Usage
Create an account at [https://b2bapi-developer.snelstart.nl/] and subscribe to 'Verkenning'. Obtain the Primary and Secondary key from your Profile and generate a key on the web interface of Snelstart under 'Maatwerk'. You are going to need these credentials for the next chapter.
Authentication
Now that you have obtained the credentials you can start by connection the library to the API.
Please note that there is also a class named SnelstartPHP\Secure\CachedAccessTokenConnection
for when you are done with developing. This will automatically take care of renewing expired access tokens.
Check if you are really authenticated
We implemented the EchoConnector
to test to see if you are authenticated.
Fetch data
For an example see var/doc/v2/inkoopboeking_find_all.php
Add data
For an example see var/doc/v2/inkoopboeking_add.php
Supported resources
Not all resources are currently implemented. Feel free to create a pull request.
Links
All versions of snelstart-php with dependencies
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.4|^7.0
moneyphp/money Version ^3.0|^4.0
myclabs/php-enum Version ^1.6
psr/cache Version ^1.0|^2.0|^3.0
psr/http-message Version ^1.0
psr/log Version ^1.0|^2.0|^3.0
ramsey/uuid Version ^3.8|^4.0