bookability/bookability-php

Bookability client for PHP with support for API v1

1.1.1 2015-01-13 11:42 UTC

This package is not auto-updated.

Last update: 2024-11-19 03:18:53 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

Bookability

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.

Installation

Requirements

  • Any flavour of PHP 5.3+ should do
  • [optional] PHPUnit to execute the test suite

With Composer

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();

Without Composer

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();

API

For more information on using the package and API, please refer to our website