PHPackages                             jguittard/zf-geocoder - 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. jguittard/zf-geocoder

ActiveLibrary

jguittard/zf-geocoder
=====================

Geocoder Service module for Zend Framework

v1.1.1(9y ago)1207BSD-3-ClausePHPPHP 5.6 || ^7.0

Since Jan 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jguittard/GeocoderModule)[ Packagist](https://packagist.org/packages/jguittard/zf-geocoder)[ Docs](http://github.com/jguittard/geocodermodule)[ RSS](/packages/jguittard-zf-geocoder/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (14)Versions (9)Used By (0)

Geocoder for Zend Framework
===========================

[](#geocoder-for-zend-framework)

This package allows you to use [**Geocoder**](http://geocoder-php.org/Geocoder/) in [**Zend Framework**](http://framework.zend.com/).

*It is still compatible with Zend Framework 2 and 3 Service Manager.*

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

[](#requirements)

Please see the [composer.json](composer.json) file.

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

[](#installation)

Run the following `composer` command:

```
$ composer require "jguittard/zf-geocoder:~1.0"
```

Alternately, manually add the following to your `composer.json`, in the `require` section:

```
"require": {
    "jguittard/zf-geocoder": "~1.0"
}
```

And then run `composer update` to ensure the module is installed.

Finally, add the module name to your project's `config/application.config.php` under the `modules`key:

```
return array(
    /* ... */
    'modules' => array(
        /* ... */
        'ZF\Geocoder',
    ),
    /* ... */
);
```

Or rely on [**Zend Component Installer**](http://github.com/zendframework/zend-component-installer) to inject this module automatically

```
composer require zendframework/zend-composer-installer:^0.4
```

Configuration
-------------

[](#configuration)

Copy the `config/zf.geocoder.local.php.dist` to the `config/autoload` directory and remove the `dist` extension to jump start configuration.

Usage
-----

[](#usage)

You can retrieve Geocoder documentation

The following will handle setup and service management within this Zend Framework module.

First, make sure you have set up your configuration file by commenting out the provider(s) you'd like to use.

For example, in `config/autoload/zf.geocoder.local.php`:

```
return [
    'geocoder' => [
        'httpAdapter' => '',
        'providers' => [
            'google_maps' => [
                'locale' => 'fr_FR',
                'region' => 'Île-de-France',
                'useSsl' => false,
            ],
        ],
    ],
];
```

Every provider is exposed as a **service** in the main Service Manager following the convention: `Geocoder\`Such service will be an instance of corresponding `Geocoder\Provider\` with appropriate configuration passed to its constructor

For example, in your controller:

```
public function localeAction()
{
    /* ... */
    $geocoder = $this->getServiceLocator()->get('Geocoder\GoogleMaps');
    $addressCollection = $geocoder->geocode('10 avenue Gambetta, Paris, France');
    /* ... */
}
```

*Obviously, such a call is bad practice. You should consider injecting your Geocoder service in a dedicated service, not call it from a controller*

Unit tests
----------

[](#unit-tests)

Make sure `dev` dependencies are installed

```
composer install --dev
```

Run the unit tests

```
composer test
```

Code styling check

```
composer cs-check
```

Check both

```
composer check
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~68 days

Total

5

Last Release

3495d ago

PHP version history (2 changes)v1.0PHP &gt;=5.4

v1.1PHP 5.6 || ^7.0

### Community

Maintainers

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

---

Top Contributors

[![jguittard](https://avatars.githubusercontent.com/u/5320213?v=4)](https://github.com/jguittard "jguittard (13 commits)")[![Gounlaf](https://avatars.githubusercontent.com/u/236413?v=4)](https://github.com/Gounlaf "Gounlaf (1 commits)")

---

Tags

geocodinggeocoderzf

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/jguittard-zf-geocoder/health.svg)

```
[![Health](https://phpackages.com/badges/jguittard-zf-geocoder/health.svg)](https://phpackages.com/packages/jguittard-zf-geocoder)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7385.1M13](/packages/toin0u-geocoder-laravel)[willdurand/geocoder-bundle

Integration of Geocoder into Symfony

3226.4M12](/packages/willdurand-geocoder-bundle)[toin0u/geotools

Geo-related tools PHP 7.3+ library

1.4k1.3k](/packages/toin0u-geotools)

PHPackages © 2026

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