, (*1)
ManiaCalendar API SDK for PHP
ManiaCalendar API SDK for PHP language, (*2)
Installation
Use Composer to install and use the SDK., (*3)
composer require 'tomvlk/maniacalendar-php-sdk:dev-master'
Alternative you can download and install manually too, but better be up-to-date with Composer, and it's easy too., (*4)
API Key
To use the API, you have to get a API key.
It's easy, and fast, just get an API key here:, (*5)
http://api.maniacalendar.com/doc/keys, (*6)
Usage
You can use most of the Methods that are available. Currently you can use:
- Get events (/events/).
- Get event detail (/event/[id]).
- Get dates for events.
- Get all titles (/titles/) for filtering.
- Get all styles (/styles/), or for title, for filtering., (*7)
To get started, look at the sample folder., (*8)
You can start with getting events with:, (*9)
require 'vendor/autoload.php'; // Add the autoload file from Composer
$eventHandler = new maniacalendar\Event("API KEY HERE");
// This will return a array with the request results. The array will be false and throw an exception on failure.
// Array will contain objects when the request was successfully.
$events = $eventHandler->getEvents();
// Output the events array
var_dump($events);
API Documentation
API Documentation is available on:
http://api.maniacalendar.com/doc/, (*10)
License
See LICENSE file., (*11)