1. Go to this page and download the library: Download amirsorouri00/eventbrite library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amirsorouri00 / eventbrite example snippets
'providers' => [
// ... other providers
Amirsorouri00\Eventbrite\EventbriteServiceProvider::class,
]
namespace App\Http\Controllers;
use Eventbrite;
use App\Http\Controllers\Controller;
class EventbriteController extends Controller
{
public function getEvent(int $eventId)
{
return response()->json(Eventbrite::event()->get($eventId));
}
}