adriano-sena / buzzvel-test
Project created for a technical test of an interview on Buzzvel
Requires
- guzzlehttp/guzzle: ^7.4
- php-coord/php-coord: ^4.5
README
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
composer require adriano-sena/buzzvel-test
Configuration
For configuration just use the composer install command to get all the dependencies needed to run the package.
composer install
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
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