PHPackages                             mixable/cakephp-locatable - 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. [Database &amp; ORM](/categories/database)
4. /
5. mixable/cakephp-locatable

ActiveCakephp-plugin[Database &amp; ORM](/categories/database)

mixable/cakephp-locatable
=========================

CakePHP behavior to add position coordinates (latitude, longitude) to any table.

2.0.0(3y ago)173MITPHPPHP &gt;=7.4

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mixable/cakephp-locatable)[ Packagist](https://packagist.org/packages/mixable/cakephp-locatable)[ Docs](http://github.com/mixable/cakephp-locatable)[ RSS](/packages/mixable-cakephp-locatable/feed)WikiDiscussions master Synced today

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

CakePHP behavior to add position coordinates (latitude, longitude) to any table.
================================================================================

[](#cakephp-behavior-to-add-position-coordinates-latitude-longitude-to-any-table)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

```
composer require mixable/cakephp-locatable

```

Enable plugin
-------------

[](#enable-plugin)

To enable the plugin, just load the plugin using `bin/cake`:

```
bin/cake plugin load Locatable

```

Import database structure
-------------------------

[](#import-database-structure)

The migrations of this plugin provide the required database structure.

```
bin/cake migrations migrate -p Locatable

```

Usage
-----

[](#usage)

To use the plugin, simply add the Locatable behavior to your table.

```
$this->addBehavior('Locatable.Locatable');
```

This will add a `hasOne Cocrdinates` association to your model.

### Accessing data

[](#accessing-data)

The associated data is available as `Coordinate` entity and can be accessed at:

```
$model->coordinate->latitude;
$model->coordinate->longitude;
```

### Saving data

[](#saving-data)

Saving the hasOne data is done in the known way of saving associated data. In your view just use the Form helper:

```
$this->Form->control('coordinate.latitude');
$this->Form->control('coordinate.longitude');
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% 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 ~359 days

Total

3

Last Release

1194d ago

Major Versions

1.0.1 → 2.0.02023-03-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/81ee46bb9d9ecbcae0cf5e6b1dc258fdc9347a85fc7822ca6bc52d2c6aeae093?d=identicon)[mixable](/maintainers/mixable)

---

Top Contributors

[![mixable](https://avatars.githubusercontent.com/u/5080095?v=4)](https://github.com/mixable "mixable (8 commits)")[![poetter-sebastian](https://avatars.githubusercontent.com/u/32681913?v=4)](https://github.com/poetter-sebastian "poetter-sebastian (1 commits)")

### Embed Badge

![Health badge](/badges/mixable-cakephp-locatable/health.svg)

```
[![Health](https://phpackages.com/badges/mixable-cakephp-locatable/health.svg)](https://phpackages.com/packages/mixable-cakephp-locatable)
```

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M170](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M201](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M43](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-databaselog

A CakePHP plugin for storing and viewing application logs in the database

44172.5k2](/packages/dereuromark-cakephp-databaselog)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

3361.0M51](/packages/dereuromark-cakephp-tools)

PHPackages © 2026

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