Download the PHP package meetdemio/demio-php-sdk without Composer
On this page you can find all versions of the php package meetdemio/demio-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package demio-php-sdk
Demio API PHP SDK
This PHP SDK are built for easier working with existing Demio REST API inside PHP projects.
Requirements
- php >= 5.5
- composer
- ext-curl
Installation via Composer
The recommended way to install Demio API PHP SDK is with Composer
curl -sS https://getcomposer.org/installer | php
You can add Demio API PHP SDK as a dependency using the composer.phar CLI:
php composer.phar require meetdemio/demio-php-sdk:dev-master
Alternatively, you can specify demio-php-sdk as a dependency in your project's existing composer.json file:
{
"require": {
"meetdemio/demio-php-sdk": "dev-master"
}
}
After installing, you need to require Composer's autoloader:
Initialization
You need login to your Demio Dashboard and get Api Key and Api Secret.
Actions
After Client initialization you are ready to work with existing methods.
Every action returns \Demio\Results
object with next methods:
isSuccess()
- boolean, check if response hasn't error messagesresults($params)
- object, Returns response contents objectcount()
- integer, if response contents is array returns it elements countmessages()
- array, error messagesimplodeMessages($glue)
- string, concat errors messages array in one string with defined gluestatusCode()
- integer, response HTTP status codegetResponse()
- GuzzleHttp Response object
Ping
Events list
Work with Events is carried out through property events
Register
Register for specified Date
Register via Registration page link
Single Event details
Getting results as associative array
Plain Demio API call
Getting events list via plain call
Examples
You can find more examples inside examples directory