Download the PHP package nextdeveloper/publitio without Composer
On this page you can find all versions of the php package nextdeveloper/publitio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nextdeveloper/publitio
More information about nextdeveloper/publitio
Files in nextdeveloper/publitio
Package publitio
Short Description PHP language interface for the Publitio RESTful API
License
Informations about the package publitio
Our Release and why we forked;
ℹ️ We created this library to be able to use it with composer and maintain the library to support various Laravel versions.
Original documentation is as below;
Publitio PHP SDK
PHP SDK for Publitio API. This SDK works with PHP version 5.5 and up.
Deprecated version
Version 1 of this SDK has been deprecated and its use is discouraged. You can find the deprecated version on the deprecated branch.
Installation
This SDK is installed via Composer.
Install Composer if you haven't already:
Install the Publitio SDK:
If you have already installed Composer globally, use:
After installing, require the Composer autoloader:
Usage
The \Publitio\API
class presents the main interface to the Publitio RESTful API.
You can find more documentation about Publitio here.
To instantiate the API
class, provide your
API key and API secret (which you can find
on your Publitio dashboard):
To Make an API call, use the call
method:
For a list of available calls, see the docs.
-
$call_url is the API call URL, for example '/files/list'.
-
$method is the HTTP method, for example 'GET' or 'DELETE'. Which of these you need depends on what kind of call you are making. The method for each API URL is documented at the docs.
-
$args is an array of URL query parameters, such as
array('public_id' => 'foo')
. - $response will be the response JSON parsed using
json_decode
. Note: this is a PHP object, not an array.
Use the call
method when you aren't going to be uploading any files with the call.
If you wish to upload a file, use the uploadFile or uploadRemoteFile methods:
Documentation
For complete documentation of this SDK, see this page.
Example
For plenty more usage examples, see the examples directory.