PHPackages                             bfg/snelstart-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bfg/snelstart-php

ActiveLibrary[API Development](/categories/api)

bfg/snelstart-php
=================

Snelstart API toegepast in PHP

0.1.4(2y ago)059.5k—8.7%1GPL-3.0-or-laterPHPPHP &gt;=7.2

Since Dec 14Pushed 2y agoCompare

[ Source](https://github.com/Xsaven/snelstart-php)[ Packagist](https://packagist.org/packages/bfg/snelstart-php)[ Docs](https://github.com/iwd-nl/snelstart-php)[ RSS](/packages/bfg-snelstart-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (11)Versions (6)Used By (0)

Snelstart B2B API
=================

[](#snelstart-b2b-api)

PHP client library to use the Snelstart B2B API. [![Build Status](https://camo.githubusercontent.com/54ae346f9434ff4f4287d7952433e586e9afdeaf373141fd25c8fb8421e504f8/68747470733a2f2f7472617669732d63692e636f6d2f6266672f736e656c73746172742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/bfg/snelstart-php)

**Note that this library is not created, or maintained, by Snelstart.**

Pre-word
========

[](#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)

Installation is easy as 1, 2, 3 thanks to Composer.

```
composer require bfg/snelstart-php
```

Usage
=====

[](#usage)

Create an account at \[\] 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
--------------

[](#authentication)

Now that you have obtained the credentials you can start by connection the library to the API.

```
$primaryKey = "";
$secondaryKey = "";
$clientKey = "";

$bearerToken = new \SnelstartPHP\Secure\BearerToken\ClientKeyBearerToken($clientKey);
$accessTokenConnection = new \SnelstartPHP\Secure\AccessTokenConnection($bearerToken);
$accessToken = $accessTokenConnection->getToken();

$connection = new \SnelstartPHP\Secure\V2Connector(
    new \SnelstartPHP\Secure\ApiSubscriptionKey($primaryKey, $secondaryKey),
    $accessToken
);
```

\_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

[](#check-if-you-are-really-authenticated)

We implemented the `EchoConnector` to test to see if you are authenticated.

Fetch data
----------

[](#fetch-data)

For an example see `var/doc/v2/inkoopboeking_find_all.php`

Add data
--------

[](#add-data)

For an example see `var/doc/v2/inkoopboeking_add.php`

Supported resources
-------------------

[](#supported-resources)

Not all resources are currently implemented. Feel free to create a pull request.

Links
=====

[](#links)

- \[\]

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~119 days

Total

5

Last Release

774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59b2d162a30938ac2c3c56340ebea07a6778a3e1c86cb70b5bc28b69a1c3f04d?d=identicon)[bfg](/maintainers/bfg)

---

Top Contributors

[![manuelderuiter](https://avatars.githubusercontent.com/u/329788?v=4)](https://github.com/manuelderuiter "manuelderuiter (146 commits)")[![Xsaven](https://avatars.githubusercontent.com/u/1726771?v=4)](https://github.com/Xsaven "Xsaven (6 commits)")[![rojtjo](https://avatars.githubusercontent.com/u/1123887?v=4)](https://github.com/rojtjo "rojtjo (5 commits)")[![SilvanWakker](https://avatars.githubusercontent.com/u/16898091?v=4)](https://github.com/SilvanWakker "SilvanWakker (1 commits)")[![robinbonnes](https://avatars.githubusercontent.com/u/5117166?v=4)](https://github.com/robinbonnes "robinbonnes (1 commits)")[![RamonSmit](https://avatars.githubusercontent.com/u/1906631?v=4)](https://github.com/RamonSmit "RamonSmit (1 commits)")[![rickgoemans](https://avatars.githubusercontent.com/u/7813679?v=4)](https://github.com/rickgoemans "rickgoemans (1 commits)")

---

Tags

snelstart

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/bfg-snelstart-php/health.svg)

```
[![Health](https://phpackages.com/badges/bfg-snelstart-php/health.svg)](https://phpackages.com/packages/bfg-snelstart-php)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
