sfneal / google-places
Actions & Controllers for interacting with the Google Places API through Laravel applications
Installs: 3 815
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
- ext-curl: *
- ext-json: *
- sfneal/actions: ^2.0
- sfneal/controllers: ^2.0
Requires (Dev)
- orchestra/testbench: >=3.8.0
- phpunit/phpunit: >=6.5.14
- scrutinizer/ocular: ^1.8
README
Actions & Controllers for interacting with the Google Places API through Laravel applications
Installation
You can install the package via composer:
composer require sfneal/google-places
Usage
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 ) ) )
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email stephen.neal14@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.