Download the PHP package amirsorouri00/eventbrite without Composer
On this page you can find all versions of the php package amirsorouri00/eventbrite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download amirsorouri00/eventbrite
More information about amirsorouri00/eventbrite
Files in amirsorouri00/eventbrite
Package eventbrite
Short Description Laravel PHP Facade/Wrapper for the Eventbrite Data API v3
License MIT
Homepage https://github.com/Amirsorouri00/eventbrite-api-laravel-wrapper
Informations about the package eventbrite
Laravel Eventbrite
Eventbrite API wrapper for Laravel. This package provides a simple interface to Eventbite's (awesome) API. Organize Eventbrite integration with expressive, clean PHP.
Requirements
PHP >= 7.2
Laravel >= 6.0
Installation
Laravel Eventbrite uses composer to make installation a breeze.
Install via composer
Register service provider
Add the Laravel Eventbrite service provider to your config/app.php
file in the providers key
Eventbrite facade alias
Then add the Eventbrite
facade to your aliases
key: 'Eventbrite' => Marat555\Eventbrite\Facades\Eventbrite::class.
Configuration
Configuration can be done via your .env
file.
`
You may also publish the config file to
config/eventbrite.pzhp
for editing:php artisan vendor:publish --provider="Amirsorouri00\Eventbrite\EventbriteServiceProvider"
Usage
Laravel Eventbrite is incredibly intuitive to use.
Introduction
Already configured everything and just want to see it in action? Take a look at the example code below.
Event
Retrieve an Event by Event ID
Create a new Event
Update Event by Event ID
List Events by Venue ID
List Events by Organization ID
List Events by Event Series ID
Publish an Event. Returns a boolean indicating the success or failure of the publish action.
Unpublish an Event. Returns a boolean indicating the success or failure of the unpublish action.
Cancel an Event. Returns a boolean indicating the success or failure of the cancel action.
Delete an Event. Returns a boolean indicating the success or failure of the delete action.
Category
Retrieve a Category by Category ID
List of Categories
Subcategory
Retrieve a Subcategory by Subcategory ID
List of Subcategories
Display Settings
Retrieve the Display Settings by Event ID
Update Display Settings
User
Retrieve a User by User ID
Retrieve your User
Venue
Retrieve a Venue by Venue ID
Create new Venue
Update a Venue
List Venues by Organization ID
Format
Retrieve a Format by Format ID
List Formats
Media
Retrieve Media by Media ID
Create a Media Upload
Retrieve a Media Upload
Query Building
The wrapper also provides a convenient way for you to build fairly elaborate Eventbrite API requests. The following methods return the instance so you can chain more constraints onto the request as required.
Expansions
Eventbrite has many models that refer to each other, and often you’ll want to fetch related data along with the primary model you’re querying - for example, you’ll want to fetch an event along with organizer.
Handling Exceptions
The Eventbrite API will return errors as required. I am still looking for a nicer way to handle these exceptions... For the time being, simply wrap your call in a try/catch block.
Implemented Eventbrite API Endpoints
- Event
- get
- create
- update
- list
- byEventSeriesId
- byVenueId
- byOrganizationId
- publish
- unpublish
- cancel
- delete
- Category
- get
- list
- Subcategory
- get
- list
- Display Settings
- getByEventId
- update
- User
- get
- me
- Venue
- get
- update
- list
- Format
- get
- list
- Media
- get
- createUpload
- createUpload
The Eventbrite API is extensive. I've attempted to cover all of the key endpoints but there are endpoints that are currently unimplemented.
License
The MIT License (MIT). Please see License File for more information.