raphaborralho / search
Simple package for search hotels by latitude and longitude
dev-main
2022-10-01 14:56 UTC
Requires
- illuminate/http: v9.32.0
- illuminate/support: v9.32.0
This package is auto-updated.
Last update: 2025-06-29 02:16:30 UTC
README
Package made for XLR8 with PHP 8 and Laravel.
Features
- Latitude and Longitude by parameters
- Order by price by night and proximity
Installation
composer require raphaborralho/search php artisan vendor:publish
Usage
Edit and add multiple sources of data in array
#config/search.php return [ //Array with multiples source 'source' => [ //'https://xlr8-interview-files.s3.eu-west-2.amazonaws.com/source_1.json', //'https://xlr8-interview-files.s3.eu-west-2.amazonaws.com/source_2.json', ] ];
In Controller:
use Raphaborralho\Search\Search;
In function:
Search::getNearbyHotels($latitude, $longitude, $orderby)
License
MIT