Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

SendCloud/SendCloud-API-PHP-Wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS LIBRARY HAS BEEN DEPRECATED.

Please refer to our official documentation <https://docs.sendcloud.sc/> to find alternative libraries.

SendCloud API PHP Wrapper

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.

Supported API versions

This wrapper is designed for API v2. Which is currently the most recent version of the SendCloud API.

Example

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

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.

Tests

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/

Alternatives

Picqer unofficial PHP API wrapper

Support

If you need support please contact us through the form in the SendCloud Panel.

Copyright (c) 2014 SendCloud BV released under the MIT License

Changelog

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

About

Official SendCloud API PHP Wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •