Currently seeking new career opportunities in web development, particularly with Laravel, Hire Me
Laravel Eventbrite

Introduction

A Laravel package for working with Eventbrite.

https://github.com/dcblogdev/laravel-eventbrite

Eventbrite API documentation can be found at: https://www.eventbrite.com/platform/docs/introduction

To use Eventbrite API an application needs creating at https://www.eventbrite.co.uk/account-settings/apps

Click the Create API Key button then fill in the form.

Import Namespace

use Dcblogdev\Eventbrite\Facades\Eventbrite;

A routes example:

Route::get('eventbrite', function() {
    //get all events
    Eventbrite::events(); 
});

Calls can be made by referencing Eventbrite:: then the verb get,post,put,patch or delete followed by the end point to call. An array can be passed as a second option.

The end points are relative paths after https://www.eventbriteapi.com/v3/

Example GET request

Eventbrite::get('users/me/organizations');

The formula is:

Eventbrite::get('path', $array);
Eventbrite::post('path', $array);
Eventbrite::put('path', $array);
Eventbrite::patch('path', $array);
Eventbrite::delete('path', $array);
Laravel Modules Your Logo Your Logo Your Logo

Become a sponsor

Help support the blog so that I can continue creating new content!

Sponsor

My Latest Book

Modular Laravel Book - Laravel: The Modular way

Learn how to build modular applications with Laravel Find out more

Subscribe to my newsletter

Subscribe and get my books and product announcements.

Learn Laravel with Laracasts

Faster Laravel Hosting

© 2006 - 2024 DC Blog. All code MIT license. All rights reserved.