Actions & Controllers for interacting with the Google Places API through Laravel applications
You can install the package via composer:
composer require sfneal/google-places
Publish the config to overwrite env values.
php artisan vendor:publish --provider="Sfneal\Healthy\Providers\HealthyServiceProvider"
Add the routes to your application.
Route::prefix('')->group(base_path('vendor/sfneal/google-places/routes/google-places.php'));
Autocomplete places queries by inputting a part of the place's name.
/places/city?q=boston
>>> Array
(
[total_count] => 5
[items] => Array
(
[0] => Array
(
[id] => Boston, MA
[text] => Boston, MA
[place_id] => ChIJGzE9DS1l44kRoOhiASS_fHg
)
[1] => Array
(
[id] => Boston, NY
[text] => Boston, NY
[place_id] => ChIJNfL3CvAB04kRz5mZnjI-6p0
)
[2] => Array
(
[id] => Boston, OH
[text] => Boston, OH
[place_id] => ChIJcaM-YbLfMIgRrdGkTgGt2Og
)
[3] => Array
(
[id] => New Boston, NH
[text] => New Boston, NH
[place_id] => ChIJDW6Uqegz4okRZT90sRNsDlk
)
[4] => Array
(
[id] => Boston Corner, NY
[text] => Boston Corner, NY
[place_id] => ChIJU_hSBC2B3YkROSlb42LQxoM
)
)
)
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the PHP Package Boilerplate.