PHPackages                             warezgibzzz/custom-map-form-type-bundle - 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. warezgibzzz/custom-map-form-type-bundle

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

warezgibzzz/custom-map-form-type-bundle
=======================================

Set the coords using custom image

038PHP

Since Feb 13Pushed 9y ago1 watchersCompare

[ Source](https://github.com/gitoido/custom-map-form-type-bundle)[ Packagist](https://packagist.org/packages/warezgibzzz/custom-map-form-type-bundle)[ RSS](/packages/warezgibzzz-custom-map-form-type-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CustomMapFormTypeBundle
=======================

[](#custommapformtypebundle)

Set the latitude and longitude using Custom Map

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

[](#installation)

Add warezgibzzz/custom-map-form-type-bundle to your `composer.json` file and run `composer`

```
...
"require": {
    "warezgibzzz/custom-map-form-type-bundle": "dev-master"
}
...
```

Register the bundle in your `AppKernel.php`

```
...
new Warezgibzzz\CustomMapFormTypeBundle\WarezgibzzzCustomMapFormTypeBundle(),
...
```

Include bundle's scripts in your page:

```
...

...
```

Usage
-----

[](#usage)

Just set the `custom_map` FormType for your field as follows:

```
...
    ->add('coordinates', 'custom_map')
...
```

The type takes and returns an array with items `lat` for the latitude and `lng` for the longitude. So you need to configure your database coordinates column as `OBJECT` or create the setter and getter for it on your model.

Options
-------

[](#options)

There are a few options that you can pass:

```
...
    ->add('coordinates', 'custom_map', array(
        'width'      => 640,      // The map's width
        'height'     => 480,      // The map's height
        'default'    => array(
            'x' => 5, // The default latitude value
            'y' => 6 // The default longitude value
        ),
        'parameters' => array(
            'image' => 'http://placehold.it/640x480', // The map image
        )
    ))
...
```

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

[](#configuration)

You can configure default values for type's options to avoid passing them every time:

```
...
warezgibzzz_custom_map_form_type:
    size:
        width:  640
        height: 480
    default:
        x: 5
        y: 6
    parameters:
        image: 'custom#map'
...
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2114164?v=4)[Gitoido](/maintainers/gitoido)[@gitoido](https://github.com/gitoido)

---

Top Contributors

[![gitoido](https://avatars.githubusercontent.com/u/2114164?v=4)](https://github.com/gitoido "gitoido (19 commits)")[![cherny-sh](https://avatars.githubusercontent.com/u/184812?v=4)](https://github.com/cherny-sh "cherny-sh (2 commits)")

### Embed Badge

![Health badge](/badges/warezgibzzz-custom-map-form-type-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/warezgibzzz-custom-map-form-type-bundle/health.svg)](https://phpackages.com/packages/warezgibzzz-custom-map-form-type-bundle)
```

###  Alternatives

[abeautifulsite/simple-php-captcha

A simple PHP CAPTCHA script

36959.1k](/packages/abeautifulsite-simple-php-captcha)[vkcom/kphp-polyfills

PHP implementations of functions supported by KPHP natively

163.3k7](/packages/vkcom-kphp-polyfills)

PHPackages © 2026

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