Download the PHP package adigital/eventbrite without Composer

On this page you can find all versions of the php package adigital/eventbrite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package eventbrite

Eventbrite plugin for Craft CMS 4.x

Integration with Eventbrite API to read information and return it in a variable.

Requirements

This plugin requires Craft CMS 4.0.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
  2. Then tell Composer to load the plugin:

    composer require adigital/eventbrite
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Eventbrite.

Eventbrite Overview

Configuring Eventbrite

The following screenshot of the plugin settings page gives an indication of how it works - you need to provide an Eventbrite API key and organisation ID, and these settings are only editable by admins on environments where the allowAdminChanges setting is enabled.

Craft CMS Eventbrite Plugin Admin Settings

There's also a settings page which can be accessed by non-admin accounts with the right permission in all environments regardless of the allowAdminChanges setting. This page enables users to optionally specify additional event IDs not set up by their organisation to return along with their organisation's events. See screenshots of this settings page and permission below:

Craft CMS Eventbrite Plugin User Settings Screenshot 2019-10-17 at 10 46 24

Using Eventbrite

The Plugin Variable

Once configured, data is returned through the plugin variable using the following methods:

craft.eventbrite.allEvents([expansions] = null, sort = true, time_filter = "current_future", unlistedEvents = false, status = "live")

This method returns all events planned by the organisation and specified by the additional event IDs setting. The expansions parameter should be a Twig array where the values correspond to the additional models that can be returned when querying data from the API. You can see the expansions that are available for events in the documentation. The sort parameter will sort events by date by default when organisation and other events are being combined. The time_filter parameter defaults to current and future events, but can also be past or all. The unlistedEvents parameter can be set as true if you want to return unlisted events. Finally, status defaults to only retrieve live events, but can also be set as draft, started, ended, completed, or canceled.

craft.eventbrite.organisationEvents([expansions] = null, time_filter = "current_future", unlistedEvents = false, status = "live")

This method returns only events planned by the organisation, with the parameters working in the same way as the allEvents method.

craft.eventbrite.otherEvents([expansions] = null, sort = true, time_filter = "current_future", unlistedEvents = false)

This method returns only events specified by the 'Other Event Ids' setting, with the parameters working in the same way as the allEvents method.

craft.eventbrite.eventById(eventId, [expansions] = null, fullDescription = true, unlistedEvent = false)

This method returns a single event by its ID, which should be the numeric ID for the event in Eventbrite. Expansions are specified as described above and the full HTML description for the event can be optionally returned and accessed with eventVariable['htmlDescription']['description'].

organisationVenues()

This method returns all the venues belonging to the organisation specified in the plugin settings.

venueById(venueId)

This method returns a venue by its ID, which should be the numeric ID for the venue in Eventbrite.

venueEvents(venueId, [expansions] = null, unlistedEvents = false, status = "live" onlyPublic = "true")

This method returns only events held at the venue specified by the venueId parameter, with the other parameters working in the same way as the allEvents method, and the additional onlyPublic parameter that states whether the events returned should be filtered by whether they are public.

Caching

As the plugin reads live data from the Eventbrite API, you should wrap any use of the variable in your Twig templates within Craft cache tags to reduce your calls to the API and improve page load times.

Eventbrite Roadmap

Things to do, and ideas for potential features:

Brought to you by Mark @ A Digital


All versions of eventbrite with dependencies

PHP Build Version
Package Version
Requires craftcms/cms Version ^4.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package adigital/eventbrite contains the following files

Loading the files please wait ....