Implementation of Sendcloud v3 API for PHP
Note
For v2 users, use Webador/sendcloud
(which this library is heavily inspired by)
- PHP 8.2+
- PSR7 & PSR17 implementation
composer require alexispplin/sendcloud-v3Note
This library uses HTTPlug
For this lib to work, you will need to install a PSR7 & PSR17 implementation.
Check the full documentation here : https://docs.php-http.org/en/latest/httplug/users.html
For example :
composer require symfony/http-client nyholm/psr7<?php
use AlexisPPLIN\SendcloudV3\Endpoints\Orders;
// Create client
$orders = new Orders(
publicKey: /* YOUR PUBLIC KEY */,
secretKey: /* YOUR SECRET KEY */,
partnerId: /* (optional) YOUR PARTNER ID */
);
// Retrieve an order
$order = $orders->getOrder(id: 1);Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a branch for your feature
- Commit your changes
- Create a Pull Request to the main branch
This project is licensed under the MIT License - see the LICENSE file for details.