sandeepchowdary7/laraeventful

Simple and extensible Eventful API PHP Client with Laravel Support based on Guzzle 6

Downloads

4

Stars

1

Version

V1.1.0

Eventful API Laravel Wrapper

A Laravel wrapper for Eventful's PHP wrapper for their REST API

Latest Version on Packagist Software License Total Downloads

Simple and extensible Eventful API PHP Client with Laravel Facade and ServiceProvider based on Guzzle 6 Currently it supports only userless endpoint requests.

Installation

  1. Add the package as a dependency in your composer.json
composer require sandeepchowdary7/laraeventful
  1. publish the vendor config file
php artisan vendor:publish --provider="Sandeepchowdary7\Laraeventful\LaraeventfulServiceProvider"
  1. 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

Laravel <= 5.4

  1. Add the following line to your providers array in your config/app.php file
Sandeepchowdary7\Laraeventful\LaraeventfulServiceProvider::class,
  1. Add the following line to your aliases array in your config/app.php file
'Eventful' => Sandeepchowdary7\Laraeventful\Facade\LaraeventfulFacade::class,

The following functions are available:

Init Eventful rqst

 $event = new Eventful();

For City Events Info

 $event = new Eventful();
 $event->getCityEvents($cityName);

For more information about the REST API go to this link: http://api.eventful.com/

License

The MIT License (MIT). Please see License File for more information.

sandeepchowdary7

Author

sandeepchowdary7