PHPackages                             avcodewizard/google-place-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. avcodewizard/google-place-api

ActiveLibrary[API Development](/categories/api)

avcodewizard/google-place-api
=============================

A Laravel package for Google Places API integration

1.0.2(1y ago)78.6k↓40.2%1MITPHPPHP ^7.3|^8.0

Since Oct 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/avcodewizard/google-place-api)[ Packagist](https://packagist.org/packages/avcodewizard/google-place-api)[ RSS](/packages/avcodewizard-google-place-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Google Places API Laravel Package
=================================

[](#google-places-api-laravel-package)

[![Total Downloads](https://camo.githubusercontent.com/410064ea655e52869df3ec4211501976ae086389f84eac35dd08492049c5a50a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6176636f646577697a6172642f676f6f676c652d706c6163652d617069)](https://packagist.org/packages/avcodewizard/google-place-api)[![Latest Stable Version](https://camo.githubusercontent.com/b789fb1d0e375310ef1e9d35c23b9f89cfe9fe7b08d1d87dab3a9fba3287058d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6176636f646577697a6172642f676f6f676c652d706c6163652d617069)](https://packagist.org/packages/avcodewizard/google-place-api)[![License](https://camo.githubusercontent.com/c9a0e4bc709aa7a739c4453c49e42831cc9824d711fe7413f0e185eb6edc0709/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6176636f646577697a6172642f676f6f676c652d706c6163652d617069)](https://packagist.org/packages/avcodewizard/google-place-api)

A Laravel package for interacting with the Google Places API. This package allows you to search for cities, states, nearby shops, restaurants, and other places based on user input or geographic coordinates.

Features
--------

[](#features)

- **Search Places**: Autocomplete feature to search cities, states, and places based on a query.
- **Nearby Places**: Find nearby shops, restaurants, and more based on latitude, longitude, and a radius.

Installation
------------

[](#installation)

### 1. Install the Package

[](#1-install-the-package)

You can install this package via Composer by running the following command in your Laravel project:

```
composer require avcodewizard/google-place-api

```

### 2. Set API Key

[](#2-set-api-key)

Add your Google Places API Key to your .env file:

```
GOOGLE_PLACES_API_KEY=your_google_places_api_key
```

Usage
-----

[](#usage)

Searching for a Place
=====================

[](#searching-for-a-place)

You can use the GooglePlacesApiService to search for cities, states, or other places via query.

```
use Avcodewizard\GooglePlaceApi\GooglePlacesApi;

class PlaceController extends Controller
{

    public function searchPlace(Request $request)
    {
        $query = $request->input('query');
        $googlePlaces = new GooglePlacesApi();
        $results = $googlePlaces->searchPlace($query);

        return response()->json($results);
    }
}
```

### Finding Place Details

[](#finding-place-details)

You can find place details like full address, opening\_hours, geometry(lat,lng), photos, rating, reviews etc., using placeId.

```
public function placeDetails($placeId)
{
    $placeApi = new GooglePlacesApi();
    $results = $placeApi->getPlaceDetails($placeId);

    return response()->json($results);
}
```

### Finding Nearby Places

[](#finding-nearby-places)

You can find nearby places like restaurants, shops, etc., using geographic coordinates (latitude and longitude) along with a search radius.

```
public function nearbyPlaces(Request $request)
{
    $latitude = $request->input('latitude');
    $longitude = $request->input('longitude');
    $radius = $request->input('radius');
    $type = $request->input('type'); // Optional: e.g., 'restaurant', 'store'

    $results = $this->googlePlaces->findNearbyPlaces($latitude, $longitude, $radius, $type);

    return response()->json($results);
}
```

Requirements
------------

[](#requirements)

- PHP 7.3 or higher
- Laravel 8.x or higher
- Google Place API key

Contribution
------------

[](#contribution)

Feel free to report issues or make Pull Requests. If you find this document can be improved in any way, please feel free to open an issue for it.

License
-------

[](#license)

[MIT](http://opensource.org/licenses/MIT)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance43

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~101 days

Total

2

Last Release

484d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e19e6c2cab30c60bcd1f9c6794710aafef9703dccbfb59b346e3f648ca799a9?d=identicon)[avcodewizard](/maintainers/avcodewizard)

---

Top Contributors

[![avcodewizard](https://avatars.githubusercontent.com/u/45030401?v=4)](https://github.com/avcodewizard "avcodewizard (7 commits)")[![ankitvommune](https://avatars.githubusercontent.com/u/128446322?v=4)](https://github.com/ankitvommune "ankitvommune (1 commits)")

---

Tags

google-places-apigoogle-places-autocomplete-apilaravellaravel-applicationlaravel-frameworklaravel-librarylaravel-packagephpphp-frameworkapilaravelgooglelocationplaces

### Embed Badge

![Health badge](/badges/avcodewizard-google-place-api/health.svg)

```
[![Health](https://phpackages.com/badges/avcodewizard-google-place-api/health.svg)](https://phpackages.com/packages/avcodewizard-google-place-api)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[jcf/geocode

Google Geocoding API for Laravel

48160.5k](/packages/jcf-geocode)[mbarwick83/shorty

Google Url Shortener API Package for Laravel 5.1

31204.9k](/packages/mbarwick83-shorty)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
