raphaborralho/search
Composer 安装命令:
composer require raphaborralho/search
包简介
Simple package for search hotels by latitude and longitude
README 文档
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
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-29