OvationTix API
Provides easy-to-use interface to work with OvationTix API, (*1)
Requirements
PHP 7.0 and later., (*2)
Composer
You can install the bindings via Composer. Run the following command:, (*3)
composer require dative/ovationtix
To use the bindings, use Composer's autoload:, (*4)
require_once('vendor/autoload.php');
Getting Started
Create a instance by passing the OvationTix client id., (*5)
$otix = new OvationTix(284);
Usage
Get Series
Will return array of Productions., (*6)
$series = $otix->getSeries();
Get Production
Will return a Production object., (*7)
$production = $otix->getSeriesProduction( 1111 );
Will return array of Performances from a Production., (*8)
$performances = $production->getPerformances();
Development
Install dependencies:, (*9)
``` bash
composer install, (*10)
## Tests
Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:
```bash
./vendor/bin/phpunit
Roadmap
- [x] Implement basic HTTP layer for requests
- [x] Implement basic OvationTix class
- [x] Implement Production class
- [x] Implement Performance class
- [ ] add
getUpcommingPerformances method to OvationTix
- [ ] add
getPerformancesCalendar method to OvationTix
- [ ] Implement Venue class, update the Production class with it
Resources
Changelog
1.0.0 - 2017.12.28