PHPackages                             marshmallow/dataset-google-geotargets - 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. marshmallow/dataset-google-geotargets

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

marshmallow/dataset-google-geotargets
=====================================

Import all GeoTargets from Google into your Laravel project.

v1.2.0(3y ago)03.3k↓50%[1 PRs](https://github.com/marshmallow-packages/dataset-google-geotargets/pulls)MITPHPPHP ^7.4|^8.0CI passing

Since Jul 23Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/dataset-google-geotargets)[ Packagist](https://packagist.org/packages/marshmallow/dataset-google-geotargets)[ Docs](https://github.com/Marshmallow-Development/)[ RSS](/packages/marshmallow-dataset-google-geotargets/feed)WikiDiscussions master Synced 1mo ago

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

[![alt text](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67 "marshmallow.")](https://camo.githubusercontent.com/329958cb02b7bee461fd9dcae7a0a3a34e6595669116ff441ad5ef9e77bc511c/68747470733a2f2f63646e2e6d617273686d616c6c6f772d6f66666963652e636f6d2f6d656469612f696d616765732f6c6f676f2f6d617273686d616c6c6f772e7472616e73706172656e742e7265642e706e67)

Laravel Google Geo Targets
==========================

[](#laravel-google-geo-targets)

This dataset contains all the geo location from Google. We update the source when Google publishes a new one and you can reseed your data. By default only the Netherlands is imported but you can change this in the config if you want to.

### Installatie

[](#installatie)

```
composer require marshmallow/dataset-google-geotargets

```

Migrate
=======

[](#migrate)

Before you run the migration, please publish the migrations first.

```
php artisan vendor:publish --provider="Marshmallow\Datasets\GoogleGeoTargets\ServiceProvider" --tag="migrations"
```

Run `php artisan migrate` to create the database schema's.

# Publish the config

Publish the config so you are able to choose which countries will be seeded to the table and which data types will be seeded. By default this is set to The Nederlands and data types. If you want this to be seeded, you don't need to publish the config.

```bash
php artisan vendor:publish --provider="Marshmallow\Datasets\GoogleGeoTargets\ServiceProvider"
```

```
return [

	/**
	 * Specify the countries you wish to sync. An empty array will
	 * result in the seeder seeding all the data.
	 */
	'countries' => [
		'NL',
	],

	/**
	 * Specify the types you wish to sync.
	 */
	'types' => [
		GoogleGeoTarget::CITY,
		// ...
	]
];
```

Seed the table
==============

[](#seed-the-table)

We need to seed to tables, the country table and the Google Geo Target tables.

```
# Seed the country table.
php artisan db:seed --class="Marshmallow\Datasets\Country\Seeders\CountrySeeder"

# Seed the Google Geo Target table
php artisan db:seed --class="Marshmallow\Datasets\GoogleGeoTargets\Seeds\GoogleGeoTargetsSeeder"
```

Usage
=====

[](#usage)

```
$country = Country::alpha2('NL');
$country->provinces->first()->cities->first()->name;
```

---

Copyright (c) 2020 marshmallow

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance47

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 86.4% 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 ~242 days

Total

4

Last Release

1398d ago

PHP version history (2 changes)v1.0.0PHP ^7.4

v1.1.1PHP ^7.4|^8.0

### Community

Maintainers

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

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (19 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

---

Tags

marshmallowGeoTargetsGeo TargetsGoogel Geo TargetsGoogle GeoTargets

### Embed Badge

![Health badge](/badges/marshmallow-dataset-google-geotargets/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-dataset-google-geotargets/health.svg)](https://phpackages.com/packages/marshmallow-dataset-google-geotargets)
```

PHPackages © 2026

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