Please refer to our official documentation <https://docs.sendcloud.sc/> to find alternative libraries.
This wrapper helps you to easily connect to the SendCloud API when you use PHP as your main programming language.
The wrapper is officially supported by SendCloud. Feel free to improve the wrapper by sending us a pull request.
This wrapper is designed for API v2. Which is currently the most recent version of the SendCloud API.
Download SendCloudApi.php
:
require_once('SendCloudApi.php'); $api = new SendCloudApi('API_PUBLIC', 'API_SECRET'); // Get shipping methods of this user $shipping_methods = $api->shipping_methods->get();
Documentation is available here: SendCloud API v2 Documentation (incl. PHP wrapper examples)
Be aware that you need a SendCloud account before you can use the SendCloud API.
Use Composer to install the test dependencies and run the tests:
composer install vendor/bin/phpunit tests
You may use the built-in Docker image for development purposes:
docker build . -t sc-php-api docker run --rm -it -v "$PWD":/code sc-php-api bash composer install vendor/bin/phpunit tests/
Picqer unofficial PHP API wrapper
If you need support please contact us through the form in the SendCloud Panel.
Copyright (c) 2014 SendCloud BV released under the MIT License
June 8 - SendCloud API PHP Wrapper 2.1.0
- Removed support for deprecated $env
- Added Sendcloud-Partner-Id header
- Added missing API end points.
- sender_addresses
- invoices
- parcel_statuses
- Added parcel cancellation method