2017 © Pedro Peláez
 

library holidaycheck

This is a wrapper for HolidayCheck API for Laravel 4.2

image

ors/holidaycheck

This is a wrapper for HolidayCheck API for Laravel 4.2

  • Monday, December 19, 2016
  • by flajsg
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

holidaycheck

This is a Laravel 4.2 wrapper for PHP parser for HolidayCheck XML api., (*1)

Dependencies

This wrapper uses ors/holidaycheck-api:1.0.* for parsing data., (*2)

Installation

To install the package you must run composer require ors/holidaycheck and set service provider and alias in your app.php file., (*3)

To include service provider add this line in 'providers' array:, (*4)

'Ors\Holidaycheck\HolidaycheckServiceProvider',

And make sure you've added aliases in 'aliases' array:, (*5)

'HolidayCheck' => 'Ors\Holidaycheck\Facades\HolidayCheckFacade',

Publishing migrations and configuration:, (*6)

You will need some custom configurations so make sure you have published config files:, (*7)

php artisan config:publish ors/holidaycheck

Basic Usage

Get detailed information about a hotel (using holiday check unique hotel id):, (*8)

$hotel = HolidayCheck::hotel(49415);

A list of hotels, (*9)

$hotels = HolidayCheck::hotels(array(), '', 10);

A list of hotel ratings:, (*10)

$ratings = HolidayCheck::hotelRatings(16);

A list of hotel reviews:, (*11)

$ratings = HolidayCheck::hotelReviews(16, array(), false, 'entryDate', 10); 

A single review (using holiday check unique hotel review id):, (*12)

$review = HolidayCheck::hotelReview(2159596);

The Versions

19/12 2016

dev-master

9999999-dev

This is a wrapper for HolidayCheck API for Laravel 4.2

  Sources   Download

MIT

The Requires

 

by ors

laravel api holidaycheck

19/12 2016

v1.0.0

1.0.0.0

This is a wrapper for HolidayCheck API for Laravel 4.2

  Sources   Download

MIT

The Requires

 

by ors

laravel api holidaycheck