Download the PHP package smokymountains/ean-client without Composer
On this page you can find all versions of the php package smokymountains/ean-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smokymountains/ean-client
More information about smokymountains/ean-client
Files in smokymountains/ean-client
Package ean-client
Short Description Client for consuming the EAN Hotel API, based on Guzzle
License MIT
Informations about the package ean-client
ean-client
A PHP implementation of the EAN Hotel API.
Supports all API requests and both IP and signature authentication. Internally it uses the XML request and response types.
Usage
Each of the API services are represented by a method on the HotelClient
object. Each API method takes parameters in a single array argument and returns the results as an array. The parameter names and structure match those of the API spec.
A HotelClient object is instantiated using the HotelClient::factory()
method
Examples
Hotel List
http://developer.ean.com/docs/hotel-list
Room Availability
http://developer.ean.com/docs/room-avail
Book Reservation
http://developer.ean.com/docs/book-reservation
Cancel Reservation
http://developer.ean.com/docs/cancel-reservation
Installation
$ composer require onlinetravelgroup/ean-client
Requirements
- PHP 5.4
- php5-curl (suggested, unless you want to use a custom adapter)
Contributing
Pull requests are welcome. Just be sure to follow the PSR-1/2 coding standards and don't make a mess.
Commit messages should follow the advice at http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html
Messy commits should be squashed until it looks like it was programmed perfectly the first time. This does not necessarily mean a single commit.
Diffs should be clean. This means the only lines with changes should be those relevant to the commit message.
Running the tests
$ phpunit
Credits
Guzzle does most of the heavy lifting. This project is really just an elaborate Guzzle Services config.
License
MIT