This library uses the REST API, documentation is found at api.etix.com.
composer require etix-simple/etix-php
<?php
use Etix\Etix;
$etix = new Etix();
// Ask your Etix service representative for the key type code
define('ETIX_EVENTBOOKING_KEY_TYPE', 'KTEXAMPLE8AC7B18D1DAEEE4DDDDDDD5E0732F40E3EEA1533333333017C6DE32A6');
// $apiKey = $etix->login($username, $password)->getApiKey();
$etix->loginWithApiKey($apiKey);
<?php
$venueCount = $etix->getVenueCount();
$venues = $etix->getVenues(['pageNum' => 1, 'pageSize' => 20]);
$venue = $etix->getVenue($venueId);
<?php
$eventCount = $etix->getEventCount(['venueId' => $venueId]);
$events = $etix->getEvents(['venueId' => $venueId, 'pageNum' => 1, 'pageSize' => 20]);
$event = $etix->getEvents($eventId);
$eventDataSnapshot = $etix->getEventDataSnapshot($eventId);
$eventTicketsDetails = $etix->getEventTicketsDetails($eventId, [
'lastTimeISO8601' => '2017-10-01T05:48:03Z',
]);
<?php
$artistCount = $etix->getArtistCount();
$artists = $etix->getArtists(['pageNum' => 1, 'pageSize' => 20]);
$artist = $etix->getArtist($artistId);
<?php
$categoryCount = $etix->getCategoryCount();
$categories = $etix->getCategories(['pageNum' => 1, 'pageSize' => 20]);
$category = $etix->getCategory($categoryId);
<?php
$result = $etix->validateTicket($serial);
$stats = $etix->getValidationStatistics($eventId);
<?php
$dateTime = $etix->getTimestamp();
# TESTS
phpunit --bootstrap vendor/autoload.php tests/EtixTest.php
# START LOCAL DOCKER
docker-compose build && docker-compose up --force-recreate
# Documentation
phpDocumentor -d ./src -t docs