Do you sell tickets for an event, performance or venue?
Sell more tickets faster with Eventfinda. Find out more. Find out more about Eventfinda Ticketing.

You're viewing documentation for a legacy API

If you don't want to implement your own XML reader/parser, you can use one of our helper code packages. For PHP, this package is called Services_Eventfinder, and can be installed through PEAR, using the following command:

pear install https://code.eventfinda.co.nz/Services_Eventfinder-0.1.4.tgz

If you do not have PEAR installed, or you just don't want to use it, you can download Services_Eventfinder without it:

Features

  • Provides easy access to all of the methods provided by the API
  • Provides a simple caching mechanism, to greatly speed up subsequent requests for Eventfinder data

Usage

Using Services_Eventfinder can be as simple as:

<?php 
  include 'Services/Eventfinder.php';
  
  $api = new Services_Eventfinder('my_username', 'my_password');
  $events = $api->searchEvents('rugby league');
  
  foreach ($events as $event) {
    echo $event->getName();
  }
?>

For full usage notes, see the accompanying readme.txt file, or the PHPdoc documentation in the code itself.

Requirements

As of version 0.1.0, Services_Eventfinder requires PHP version 5.0 or higher, with the latest stable version recommended. Services_Eventfinder is no longer compatible with PHP 4.

If you absolutely require PHP 4 support, you cand download version 0.0.9, but this version will not be supported in the future.

API Help & Support

For all API support enquiries please email support@eventfinda.co.nz.