A simple API package for integration with Bookability with PHP 5.3+. If you are looking for our Laravel 4 compatible package, please take a look at https://github.com/bookability/bookability-l4.
- Any flavour of PHP 5.3+ should do
- [optional] PHPUnit to execute the test suite
The easiest way to install Bookability is via composer.
In order to install add the following to your composer.json
file within the require
block:
"require": {
…
"bookability/bookability-php": "1.*",
…
}
You can then use the following in your code:
$bookability = new Bookability();
$bookability->dsn = 'http://username@project:your-key-goes-here@api.bookability.io:80/v1';
$events = $bookability->events->find();
Download the Bookability folder from the repo and save the file into your project path somewhere.
<?php
require 'path/to/Bookability.php';
$bookability = new Bookability();
$bookability->dsn = 'http://username@project:your-key-goes-here@api.bookability.io:80/v1';
$events = $bookability->events->find();
For more information on using the package and API, please refer to our website