PHPackages                             ryanj/eventbrite-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ryanj/eventbrite-client

ActiveLibrary[API Development](/categories/api)

ryanj/eventbrite-client
=======================

PHP client for the Eventbrite API

251383PHP

Since Apr 13Pushed 10y ago2 watchersCompare

[ Source](https://github.com/ryanj/eventbrite.php)[ Packagist](https://packagist.org/packages/ryanj/eventbrite-client)[ RSS](/packages/ryanj-eventbrite-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

\#PHP Eventbrite API Client Library
-----------------------------------

[](#php-eventbrite-api-client-library)

WARNING: This library uses Eventbrite API endpoints that have been deprecated (as of April 2015).
-------------------------------------------------------------------------------------------------

[](#warning-this-library-uses-eventbrite-api-endpoints-that-have-been-deprecated-as-of-april-2015)

See Eventbrite's developer site for updated info on how to use thier new APIs:

Requirements:
-------------

[](#requirements)

### API key

[](#api-key)

Eventbrite API keys are available here:

### User key

[](#user-key)

Eventbrite User\_keys are optional. They are only required if you need to access private data. Eventbrite users can find their user\_key here:

Examples:
=========

[](#examples)

### Load the API Client library

[](#load-the-api-client-library)

```
require 'Eventbrite.php';

```

### Initialize the client by setting your authentication tokens

[](#initialize-the-client-by-setting-your-authentication-tokens)

Add your authentication tokens to make this example work:

```
$eb_client = new Eventbrite( array('app_key'=>'YOUR_APP_KEY',
                                   'user_key'=>'YOUR_USER_KEY'));

```

### Initialization using OAuth2.0 tokens

[](#initialization-using-oauth20-tokens)

You can also initialize the API client with an OAuth2.0 "access\_token":

```
$eb_client = new Eventbrite( array('access_token'=>'YOUR_ACCESS_TOKEN'));

```

Or, initialize the client by using an intermediary OAuth2.0 "access\_code", which will automaticaly be exchanged for an OAuth2.0 "access\_token":

```
$eb_client = new Eventbrite(array('app_key'=>'YOUR_API_KEY',
                                  'client_secret'=>'YOUR_CLIENT_SECRET',
                                  'access_code'=>'YOUR_ACCESS_CODE' ));

```

For more information and usage examples regarding OAuth2.0, see our [OAUTH2-README.md](https://github.com/ryanjarvinen/eventbrite.php/blob/master/OAUTH2-README.md)

Documentented API methods will be available on the client object
----------------------------------------------------------------

[](#documentented-api-methods-will-be-available-on-the-client-object)

See Eventbrite's [API Docs](http://developer.eventbrite.com/doc) for more information about the available method calls. Request parameters should be encapsulated in an array of key/value pairs as in the examples below:

### event\_get example

[](#event_get-example)

```
// request an event by adding a valid EVENT_ID value here:
$resp = $eb_client->event_get( array('id' => 'EVENT_ID') );

// print a ticket widget for the event:
print( Eventbrite::ticketWidget($resp->event) );

```

### event\_search example

[](#event_search-example)

```
$search_params = array(
    'max' => 2,
    'city' => 'San Francisco',
    'region' => 'CA',
    'country' => 'US'
);
$resp = $eb_client->event_search( $search_params );

```

### event\_new example

[](#event_new-example)

```
$new_event_params = array(
    'title' => 'My test event',
    'description' => 'testing event creation, remember not to set the privacy or visibility of test events to "public".',
    'start_date' => date('Y-m-d H:i:s', time() + (7 * 24 * 60 * 60)),
    'end_date' => date('Y-m-d H:i:s', time() + (7 * 24 * 60 * 60) + (2 * 60 * 60) )
);
try{
    $response = $eb_client->event_new($new_event_params);
}catch( Exception $e ){
    // application-specific error handling goes here
    $response = $e->error;
}

```

### Rendering lists of events as HTML

[](#rendering-lists-of-events-as-html)

If you are planning to use PHP to help keep your site's event listing up to date, take a look at this guide:

More information about available API methods
--------------------------------------------

[](#more-information-about-available-api-methods)

Eventbrite API documentation:

Resources:
==========

[](#resources)

- [Eventbrite on GitHub](http://eventbrite.github.com/)
- [API Documentation](http://developer.eventbrite.com/doc/)
- [API Getting-Started Guide](http://developer.eventbrite.com/doc/getting-started/)
- [Eventbrite API terms and usage limitations](http://developer.eventbrite.com/terms/)
- [Eventbrite Branding Guidelines](http://developer.eventbrite.com/news/branding/)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a91d49a211265e3dcc7a71c8c87f315a1eda54e3cdfc650c4bc427cd90d5278?d=identicon)[ryanj](/maintainers/ryanj)

---

Top Contributors

[![ryanj](https://avatars.githubusercontent.com/u/17562?v=4)](https://github.com/ryanj "ryanj (54 commits)")[![robholmes](https://avatars.githubusercontent.com/u/206717?v=4)](https://github.com/robholmes "robholmes (1 commits)")

### Embed Badge

![Health badge](/badges/ryanj-eventbrite-client/health.svg)

```
[![Health](https://phpackages.com/badges/ryanj-eventbrite-client/health.svg)](https://phpackages.com/packages/ryanj-eventbrite-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M96](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
