PHPackages                             wedevelopnl/silverstripe-addressfield - 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. wedevelopnl/silverstripe-addressfield

ActiveLibrary

wedevelopnl/silverstripe-addressfield
=====================================

Silverstripe module to create nested menus

1.0.13(2y ago)01112[1 issues](https://github.com/wedevelopnl/silverstripe-addressfield/issues)BSD-3-ClausePHP

Since Dec 8Pushed 12mo ago11 watchersCompare

[ Source](https://github.com/wedevelopnl/silverstripe-addressfield)[ Packagist](https://packagist.org/packages/wedevelopnl/silverstripe-addressfield)[ RSS](/packages/wedevelopnl-silverstripe-addressfield/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (19)Used By (0)

SilverStripe Address field
==========================

[](#silverstripe-address-field)

Introduction
------------

[](#introduction)

Address field with geolocation

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

[](#requirements)

- Silverstripe CMS `^4 || ^5`
- "jeroendesloovere/geolocation-php-api": "1.3.\*"

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

[](#installation)

```
composer require "thewebmen/silverstripe-addressfield" "dev-master"

```

Config
------

[](#config)

Add the Google Maps API key:

```
TheWebmen\Addressfield\Forms\GooglePlacesField:
  maps_api_key: 'API_KEY'
```

Or add the following variable to your `.env`:

```
WDVLP_ADDRESSFIELD_MAPS_API_KEY='API_KEY'

```

Usage
-----

[](#usage)

Add all db fields to the db array:

```
private static $db = [
        'City' => 'Varchar',
        'Country' => 'Varchar',
        'ZipCode' => 'Varchar',
        'Street' => 'Varchar',
        'StreetNumber' => 'Varchar',
        'Latitude' => 'Varchar',
        'Longitude' => 'Varchar'
    ];

```

Then add the field like any other field

```
public function updateCMSFields(FieldList $fields)
    {
        $fields->addFieldToTab('Root.Address', new AddressField($this->owner));
    }
```

See the addressfield class for all constructor options.

Distance helper
---------------

[](#distance-helper)

The module comes with a distance helper to calculate the distance between two latitude/longitudes, example usage:

```
    $list = ObjectWithLatitudeLongitude::get();
    $list = TheWebmen\Addressfield\Helpers\DistanceHelper::addDistance($list, '52.2112', '5.9699');
    $list = $list->sort('Distance');
    foreach($list as $item){
        var_dump($item->Distance);
    }
```

Todo
----

[](#todo)

- Improve documentation

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~446 days

Total

15

Last Release

946d ago

Major Versions

0.0.1 → 1.0.02017-12-08

### Community

Maintainers

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

---

Top Contributors

[![michelsteege](https://avatars.githubusercontent.com/u/5492453?v=4)](https://github.com/michelsteege "michelsteege (5 commits)")[![robertvanlienden](https://avatars.githubusercontent.com/u/27813145?v=4)](https://github.com/robertvanlienden "robertvanlienden (5 commits)")[![Dennisprins93](https://avatars.githubusercontent.com/u/9679179?v=4)](https://github.com/Dennisprins93 "Dennisprins93 (2 commits)")[![erikfrerejean](https://avatars.githubusercontent.com/u/197732?v=4)](https://github.com/erikfrerejean "erikfrerejean (2 commits)")[![purplespider](https://avatars.githubusercontent.com/u/329880?v=4)](https://github.com/purplespider "purplespider (2 commits)")

---

Tags

addressgeolocationsilverstripeformfield

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wedevelopnl-silverstripe-addressfield/health.svg)

```
[![Health](https://phpackages.com/badges/wedevelopnl-silverstripe-addressfield/health.svg)](https://phpackages.com/packages/wedevelopnl-silverstripe-addressfield)
```

###  Alternatives

[burnbright/silverstripe-externalurlfield

Provides SilverStripe with a DBField and FormField for handling external URLs.

109.6k1](/packages/burnbright-silverstripe-externalurlfield)

PHPackages © 2026

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