pinvandaag / p-market-api-develop-php
A PHP wrapper for the PAXSTORE Developer API
Package info
github.com/Pin-Voordeel-Bv/p-market-api-develop-php
pkg:composer/pinvandaag/p-market-api-develop-php
v1.1.2
2026-07-13 08:52 UTC
Requires
- php: ^8.2
- guzzlehttp/guzzle: ^7.7
- phpdocumentor/reflection-docblock: ^5.3
- psr/log: ^3.0
- symfony/property-access: ^6.3|^7
- symfony/serializer: ^6.3|^7
Requires (Dev)
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11
- squizlabs/php_codesniffer: ^3.7
- vimeo/psalm: ^6
README
A PHP wrapper for the PAXSTORE Developer API.
Installation
composer require pinvandaag/p-market-api-develop-php
Configuration
use PinVandaag\PMarketAPIDevelop\PMarketAPIDevelopClient; $client = (new PMarketAPIDevelopClient())->configure( baseUri: 'https://api.whatspos.com/p-market-api', apiKey: $_ENV['P_MARKET_DEVELOP_API_KEY'], apiSecret: $_ENV['P_MARKET_DEVELOP_API_SECRET'], timeZone: 'Europe/Amsterdam', contentLanguage: 'en', );
Structure
PMarketAPIDevelopClient: public facade, matching the original package.Client\APIClient: authentication, HTTP requests, Symfony Serializer, exceptions, validation and multipart helpers.Client\Traits\DeveloperApiTrait: all Developer API endpoint implementations.Model: request and response DTOs.
Authentication follows the official PAX Developer Java SDK: devKey and millisecond timestamp are appended to the query string, and the uppercase MD5 of queryString + apiSecret is sent in the signature header.
updateAppKeySecret() expects appKey and appSecret already encrypted with the Java SDK-compatible AES/SHA1PRNG implementation.