Skip to content

raphaborralho/search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raphaborralho/search


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages