PHPackages                             aboleon/metaframework-google-places - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. aboleon/metaframework-google-places

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

aboleon/metaframework-google-places
===================================

Google Places address autocomplete component for Laravel

1.7.0(1mo ago)026↓100%1MITPHPPHP ^8.3CI passing

Since Jan 28Pushed 1mo agoCompare

[ Source](https://github.com/aboleon/metaframework-google-places)[ Packagist](https://packagist.org/packages/aboleon/metaframework-google-places)[ RSS](/packages/aboleon-metaframework-google-places/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (10)Versions (17)Used By (1)

MetaFramework Google Places
===========================

[](#metaframework-google-places)

[![Tests](https://github.com/aboleon/metaframework-google-places/actions/workflows/tests.yml/badge.svg)](https://github.com/aboleon/metaframework-google-places/actions)[![codecov](https://camo.githubusercontent.com/ad0f9d85eaaff00e6f27c0cd8b0241875d4ae9e8937dcc096d040e9f6fdebb26/68747470733a2f2f636f6465636f762e696f2f67682f61626f6c656f6e2f6d6574616672616d65776f726b2d676f6f676c652d706c616365732f67726170682f62616467652e737667)](https://codecov.io/gh/aboleon/metaframework-google-places)[![Latest Version on Packagist](https://camo.githubusercontent.com/05f4ad9612162beac843e222294c808230dc9319ca2114cade69d8fac72507fd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61626f6c656f6e2f6d6574616672616d65776f726b2d676f6f676c652d706c616365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aboleon/metaframework-google-places)[![Total Downloads](https://camo.githubusercontent.com/bcf6907a274f3c4f1a8b66e3fba883d187802952dd4eff6443594f7b5e12e0d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61626f6c656f6e2f6d6574616672616d65776f726b2d676f6f676c652d706c616365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aboleon/metaframework-google-places)[![PHP Version](https://camo.githubusercontent.com/2437c70c634fd9998a954f78da636ef9cd8d1df66abe3a5cf86d716ef3634b99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61626f6c656f6e2f6d6574616672616d65776f726b2d676f6f676c652d706c616365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aboleon/metaframework-google-places)[![License](https://camo.githubusercontent.com/b794c76a63877a4470e5e6f5905e369559deeb2f6c0902b6db973abc9c3d97f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61626f6c656f6e2f6d6574616672616d65776f726b2d676f6f676c652d706c616365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aboleon/metaframework-google-places)

Google Places address autocomplete component for Laravel

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

[](#requirements)

- PHP ^8.3
- Laravel ^11.0 | ^12.0
- MetaFramework Inputable

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

[](#installation)

```
composer require aboleon/metaframework-google-places
```

Publish assets/config/translations:

```
php artisan vendor:publish --tag=mfw-google-places-config
php artisan vendor:publish --tag=mfw-google-places-translations
php artisan vendor:publish --tag=mfw-google-places-assets
```

Configuration
-------------

[](#configuration)

`config/mfw-google-places.php`:

```
return [
    'google' => [
        'places_api_key' => env('MFW_GOOGLE_PLACES_KEY', ''),
    ],
];
```

Usage
-----

[](#usage)

```

```

Searchbar-only mode:

```

```

### Custom search filters (Places API)

[](#custom-search-filters-places-api)

You can pass Places Autocomplete options through `params`. The component supports:

- `types` (legacy; mapped to `includedPrimaryTypes`)
- `includedPrimaryTypes`
- `includedSecondaryTypes`
- `includedRegionCodes` (or legacy `componentRestrictions.country`)

Example: keep address results and also allow hotels/lodging:

```

```

To fully customize, publish the component and use the native Blade tag:

```

```

Artisan Commands
----------------

[](#artisan-commands)

```
php artisan mfw-google-places:make-geo-model
php artisan mfw-google-places:make-geo-for-model {model?}
php artisan mfw-google-places:publish-component [--force]
php artisan mfw-google-places:publish-request [--force]
```

- `mfw-google-places:make-geo-model` generates a new Geo model and migration with all Google Places fields.
- `mfw-google-places:make-geo-for-model` adds a Google Places Geo relation and migration to an existing model (optionally provide the model class).
- `mfw-google-places:publish-component` publishes `app/View/Components/GooglePlaces.php` and `resources/views/components/google-places.blade.php` for customization (use `--force` to overwrite).
- `mfw-google-places:publish-request` publishes a `GooglePlacesRequest` to `app/Http/Requests` for customization (use `--force` to overwrite).

Validation example:

```
use MetaFramework\GooglePlaces\Validation\GoogleAddressValidation;

$rules = (new GoogleAddressValidation())
    ->setPrefix('address')
    ->setRequiredFields(['route', 'postal_code', 'locality'])
    ->rules();
```

Customize the published request:

```
php artisan mfw-google-places:publish-request
```

```
// app/Http/Requests/GooglePlacesRequest.php
public function rules(): array
{
    return (new GoogleAddressValidation())
        ->setPrefix('address')
        ->setRequiredFields(['route', 'postal_code', 'locality'])
        ->rules();
}
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance89

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

17

Last Release

54d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd427eef37726c93700471f509dcb5bd190be25cfa3aa01e388e117d6a353b71?d=identicon)[aboleon](/maintainers/aboleon)

---

Top Contributors

[![aboleon](https://avatars.githubusercontent.com/u/86931678?v=4)](https://github.com/aboleon "aboleon (17 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/aboleon-metaframework-google-places/health.svg)

```
[![Health](https://phpackages.com/badges/aboleon-metaframework-google-places/health.svg)](https://phpackages.com/packages/aboleon-metaframework-google-places)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7825.3M18](/packages/akaunting-laravel-money)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[laracraft-tech/laravel-useful-additions

A collection of useful Laravel additions!

58109.4k](/packages/laracraft-tech-laravel-useful-additions)

PHPackages © 2026

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