2017 © Pedro Peláez
 

library etix-php

PHP SDK for Etix API

image

etix-simple/etix-php

PHP SDK for Etix API

  • Wednesday, February 21, 2018
  • by claytonfbell
  • Repository
  • 1 Watchers
  • 2 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Etix PHP SDK

Build Status Latest Stable Version Total Downloads License, (*1)

This library uses the REST API, documentation is found at api.etix.com., (*2)

Install

composer require etix-simple/etix-php

Authenticate

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

Venues

<?php

$venueCount = $etix->getVenueCount();
$venues = $etix->getVenues(['pageNum' => 1, 'pageSize' => 20]);
$venue = $etix->getVenue($venueId);

Events

<?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',
]);

Artists

<?php

$artistCount = $etix->getArtistCount();
$artists = $etix->getArtists(['pageNum' => 1, 'pageSize' => 20]);
$artist = $etix->getArtist($artistId);

Categories

<?php

$categoryCount = $etix->getCategoryCount();
$categories = $etix->getCategories(['pageNum' => 1, 'pageSize' => 20]);
$category = $etix->getCategory($categoryId);

Validate

<?php

$result = $etix->validateTicket($serial);
$stats = $etix->getValidationStatistics($eventId);

Timestamp

<?php

$dateTime = $etix->getTimestamp();

Development

# 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

The Versions

21/02 2018

2.0.x-dev

2.0.9999999.9999999-dev

PHP SDK for Etix API

  Sources   Download

MIT

The Requires

 

by Clayton Bell

19/01 2018

dev-master

9999999-dev

PHP SDK for Etix API

  Sources   Download

MIT

The Requires

 

by Clayton Bell

19/01 2018

1.0.1

1.0.1.0

PHP SDK for Etix API

  Sources   Download

MIT

The Requires

 

by Clayton Bell

17/01 2018

1.0.0

1.0.0.0

PHP SDK for Etix API

  Sources   Download

MIT

The Requires

 

by Clayton Bell