Skip to content

Provides a PHP client to interact with the SendCloud v3 API in an object-oriented way.

License

Notifications You must be signed in to change notification settings

AlexisPPLIN/sendcloud-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sendcloud v3 ☁️

Packagist Version License

📦 About

Implementation of Sendcloud v3 API for PHP

Note

For v2 users, use Webador/sendcloud
(which this library is heavily inspired by)

⚙️ Requirements

  • PHP 8.2+
  • PSR7 & PSR17 implementation

🛠️ Installation

composer require alexispplin/sendcloud-v3

Note

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

🌐 Supported Endpoints

💡 Quick start

<?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);

🤝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository
  2. Create a branch for your feature
  3. Commit your changes
  4. Create a Pull Request to the main branch

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Provides a PHP client to interact with the SendCloud v3 API in an object-oriented way.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages