Download the PHP package open-southeners/carbone-sdk without Composer
On this page you can find all versions of the php package open-southeners/carbone-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download open-southeners/carbone-sdk
More information about open-southeners/carbone-sdk
Files in open-southeners/carbone-sdk
Package carbone-sdk
Short Description Unofficial port of the Carbone API SDK to Saloon v3
License MIT
Rated 5.00 based on 1 reviews
Informations about the package carbone-sdk
Carbone PHP
Unofficial port of the Carbone API SDK to Saloon v3
Getting started
Laravel installation
To make this work within a Laravel app you just need to add the following at the very bottom of your .env
file:
To customise the API version and more you can simply add carbone
array item to the config/services.php:
Usage
Within Laravel you've it injected into your application's container:
Any other framework (or not)
If you are using another framework (or just pure PHP), you can still use this as a standalone library:
Differences between official SDK and this
- Full Laravel support (optionally as this supports any framework or even raw PHP)
- Use of Saloon v3 not the v1 (which improves at everything typed for better IDE autocompletion support, etc)
- Replaced the
template()->upload()
method withtemplate()->base64Upload()
so the upload method can be used to sendmultipart/form-data
POST request instead of aapplication/json
with all the file contents base64 encoded - Added
template()->exists()
to get if template with ID exists in Carbone (just a HEAD request so no content fetch at all) - Added
status()->fetch()
to get status (not currently publicly documented, only on the OpenAPI, Postman, etc. Can check them here)
You can still check the official one here.
Partners
License
This package is open-sourced software licensed under the MIT license.