PHPackages                             gian\_tiaga/moonshine-coordinates - 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. gian\_tiaga/moonshine-coordinates

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

gian\_tiaga/moonshine-coordinates
=================================

Field of coordinates on leaflet map for moonshine admin panel

1.0.2(1y ago)125711[1 issues](https://github.com/falur/moonshine-coordinates/issues)MITBladePHP ^8.2

Since Jun 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/falur/moonshine-coordinates)[ Packagist](https://packagist.org/packages/gian_tiaga/moonshine-coordinates)[ RSS](/packages/gian-tiaga-moonshine-coordinates/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (4)Used By (0)

Поле для выбора точки на карте и сохраненя координат, использует LeafLet
========================================================================

[](#поле-для-выбора-точки-на-карте-и-сохраненя-координат-использует-leaflet)

Установка
---------

[](#установка)

```
composer require gian_tiaga/moonshine-coordinates
```

Использование
-------------

[](#использование)

1. Добавьте в миграцию поле с координатами

```
$table->json('coordinates')->nullable();
```

2. Добавьте в свою модель `cast`

```
use GianTiaga\MoonshineCoordinates\Casts\CoordinatesCast;

// ...code

/**
 * @return array
 */
protected function casts(): array
{
    return [
        'coordinates' => CoordinatesCast::class,
    ];
}
```

3. Используйте поле в своём ресурсе

```
use GianTiaga\MoonshineCoordinates\Dto\CoordinatesDto;
use GianTiaga\MoonshineCoordinates\Fields\Coordinates;

// ...code

Coordinates::make('Расположение', 'coordinates')
    ->center(new CoordinatesDto(
        latitude: 55.7505412,
        longitude: 37.6174782
    ))
    ->zoom(10),
```

Как выглядит
------------

[](#как-выглядит)

[![demo](demo/demo.webp)](demo/demo.webp)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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 ~0 days

Total

3

Last Release

697d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3be6c38f0f401fd4e4d16b53cd198d5ae982d44ddf6e880c174e2f553692a58?d=identicon)[gian\_tiaga](/maintainers/gian_tiaga)

---

Top Contributors

[![falur](https://avatars.githubusercontent.com/u/6442411?v=4)](https://github.com/falur "falur (5 commits)")

---

Tags

mapleafletcoordinatesmoonshine

###  Code Quality

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/gian-tiaga-moonshine-coordinates/health.svg)

```
[![Health](https://phpackages.com/badges/gian-tiaga-moonshine-coordinates/health.svg)](https://phpackages.com/packages/gian-tiaga-moonshine-coordinates)
```

###  Alternatives

[dasprid/enum

PHP 7.1 enum implementation

379146.0M11](/packages/dasprid-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49444.8M97](/packages/marc-mabe-php-enum)[kolyunya/yii2-map-input-widget

Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.

2836.3k4](/packages/kolyunya-yii2-map-input-widget)[symfony/ux-leaflet-map

Symfony UX Map Leaflet Bridge

13146.6k1](/packages/symfony-ux-leaflet-map)

PHPackages © 2026

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