Download the PHP package adriano-sena/buzzvel-test without Composer
On this page you can find all versions of the php package adriano-sena/buzzvel-test. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adriano-sena/buzzvel-test
More information about adriano-sena/buzzvel-test
Files in adriano-sena/buzzvel-test
Package buzzvel-test
Short Description Project created for a technical test of an interview on Buzzvel
License
Informations about the package buzzvel-test
Buzzvel Test
Repository created for technical testing on Buzzvel
This repository was created to delivery a package able to performs a HTTP request to the Buzzvel endpoint, procces the JSON data and return to the user a list of hotels ordered by the selected search critery(price or proximity).
Instalation
Configuration
For configuration just use the composer install command to get all the dependencies needed to run the package.
Usage
Use the Search::getNearbyHotels( $latitude, $longitude, $orderby ) to get a list of hotels orderred by the $orderby values: "pricepernight" or "proximity".
Mandatory parameters:
● $latitude ● $longitude Optional parameters:
● $orderby // Order by parameter should interpret one of the following values “proximity” or “pricepernight”
If the $orderby parameter is not defined when calling the method, we’re expecting to get the list ordered by proximity.
History
- v1.0.0
- Initial version (olny the basic funtionality to get the formated hotels list)
Meta
- Initial version (olny the basic funtionality to get the formated hotels list)
Adriano Sena – @@NanoSena1
Contributing
- Make a fork of the project (https://github.com/yourname/yourproject/fork)
- Create a branch (
git checkout -b feature/fooBar
) - Make a commit (
git commit -am 'Add some fooBar'
) - Push (
git push origin feature/fooBar
) - Create a new Pull Request