galiasay/laravel-expedia

Expedia API for Laravel 5
96 1
Install
composer require galiasay/laravel-expedia
Latest Version:0.0.1
License:MIT
Last Updated:May 31, 2017
Links: GitHub  ·  Packagist
Maintainer: galiasay

Expedia API for Laravel 5

This is a simple Laravel Service Provider providing access to the Expedia API.

Installation

Add the package in your composer.json by executing the command.

composer require galiasay/laravel-expedia

Once Expedia API is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key:

'providers' => [
    Galiasay\Expedia\ExpediaServiceProvider::class,
];

And add an alias:

'aliases' => [
    'ExpediaApi' => \Galiasay\Expedia\Facades\ExpediaApi::class
];

Configuration

Create configuration file and migration table using artisan:

$ php artisan vendor:publish

Execute the database migrations:

$ php artisan migrate

Then update config/expedia.php with your credentials. You can also update your .env file with the following:

EXPEDIA_CID = my_expedia_cid
EXPEDIA_API_KEY = my_expedia_api_key 
EXPEDIA_SECRET = my_expedia_secret
EXPEDIA_MINOR_REV = my_expedia_rev

Artisan Commands

Import database

$ php artisan expedia:import

Related Packages

php-tmdb/laravel

Laravel Package for TMDB ( The Movie Database ) API. Provides easy access to the...

53,312 161
cyvelnet/laravel5-fractal

A simple fractal service provider and transformer generator with model attribute...

189,959 79
kavenegar/laravel

laravel 4 and 5 kavenegar integration

363,860 86
pixelpeter/laravel5-woocommerce-api-client

Laravel 5 wrapper for the Woocommerce REST API

106,547 123