Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nmfzone/google-map-place-detail-laravel
Get Place Detail using Google Map API in Laravel
https://github.com/nmfzone/google-map-place-detail-laravel
Last synced: 7 days ago
JSON representation
Get Place Detail using Google Map API in Laravel
- Host: GitHub
- URL: https://github.com/nmfzone/google-map-place-detail-laravel
- Owner: nmfzone
- License: mit
- Created: 2017-12-28T05:57:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-11T02:35:54.000Z (almost 6 years ago)
- Last Synced: 2024-12-07T01:19:58.849Z (about 1 month ago)
- Language: PHP
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Google Map Place Detail
Get Place Detail using Google Map API in Laravel.
# Installation
### Requirements>= PHP 7.1
### Installation in Laravel 5.5 and up
```bash
$ composer require nmfzone/google-map-place-detail-laravel
```The package will automatically register itself.
### Installation in Laravel 5.4
```bash
$ composer require nmfzone/google-map-place-detail-laravel
```Next up, the service provider must be registered:
```php
// config/app.php'providers' => [
...
NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetailServiceProvider::class,
];
```If you want to make use of the facade you must install it as well:
```php
// config/app.php'aliases' => [
...
'GoogleMapPlaceDetail' => NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetailFacade::class,
];
```If you want to change the default config, you must publish the config file:
```bash
$ php artisan vendor:publish --provider="NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetail"
```### Installation in Lumen
```bash
$ composer require nmfzone/google-map-place-detail-laravel
```Next up, the service provider must be registered:
```php
// bootstrap/app.php$app->register(NMFCODES\GoogleMapPlaceDetail\GoogleMapPlaceDetailServiceProvider::class);
```## Usage
Using facade (with default config),
```php
GoogleMapPlaceDetail::getDetails('ChIJY67epzRYei4R5AnGbv3UNXQ')->getName();GoogleMapPlaceDetail::getDetails('ChIJY67epzRYei4R5AnGbv3UNXQ')->getProvince();
```## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [Nabil M. Firdaus](https://twitter.com/nmfzone)
- [All contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.