PHPackages                             litstack/location - 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. litstack/location

ActiveLibrary

litstack/location
=================

v1.0.1(5y ago)07MITVue

Since Jan 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/litstack/location)[ Packagist](https://packagist.org/packages/litstack/location)[ RSS](/packages/litstack-location/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Location
========

[](#location)

A field that stores the `lat`and `lng` values as well as further information of a place you can search like on google maps.

Setup
-----

[](#setup)

Prepare your model with two float colums, e.g. `lat` and `lng` and set them fillable.

```
$table->float('lat', 12, 9);
$table->float('lng', 12, 9);
```

In order to use the location field you need an Google-API-Key with the following APIs activated:

- Maps JavaScript
- Places API

Add this to your `lit` config.

```
'location' => [
    'google_api_key' => env('GOOGLE_API_KEY'),
],
```

Now the map field can be used like this:

```
$form->map('lat', 'lng');
```

You can save further information from the Places-API like this:

```
$form->map('lat', 'lng', [
    'formatted_address' => 'address', // saves the formatted_address attribute in the address column of your model
]);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~58 days

Total

4

Last Release

1873d ago

Major Versions

v0.0.2 → v1.0.02021-01-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b2d65d58480dd7fdbf4f4593158cbd0634550ee9210c49957cc48c8a8ccaef6?d=identicon)[jannescb](/maintainers/jannescb)

---

Top Contributors

[![cbl](https://avatars.githubusercontent.com/u/29352871?v=4)](https://github.com/cbl "cbl (6 commits)")[![jannescb](https://avatars.githubusercontent.com/u/17292622?v=4)](https://github.com/jannescb "jannescb (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/litstack-location/health.svg)

```
[![Health](https://phpackages.com/badges/litstack-location/health.svg)](https://phpackages.com/packages/litstack-location)
```

PHPackages © 2026

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