Simple and extensible Eventful API PHP Client with Laravel Facade and ServiceProvider based on Guzzle 6 Currently it supports only userless endpoint requests.
- Add the package as a dependency in your composer.json
composer require sandeepchowdary7/laraeventful
- publish the vendor config file
php artisan vendor:publish --provider="Sandeepchowdary7\Laraeventful\LaraeventfulServiceProvider"
- Add your Eventful API token to the config file located in app/config/eventful.php. I recommend you add this key to your project .env file instead of directly adding it to your config file. You can find your API token at the user settings page (https://www.eventful.com).
EVENTFUL_APP_KEY=your app key here
- Add the following line to your providers array in your
config/app.php
file
Sandeepchowdary7\Laraeventful\LaraeventfulServiceProvider::class,
- Add the following line to your aliases array in your
config/app.php
file
'Eventful' => Sandeepchowdary7\Laraeventful\Facade\LaraeventfulFacade::class,
$event = new Eventful();
$event = new Eventful();
$event->getCityEvents($cityName);
For more information about the REST API go to this link: http://api.eventful.com/
The MIT License (MIT). Please see License File for more information.