PHPackages                             cyberjaw/google-maps-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. [API Development](/categories/api)
4. /
5. cyberjaw/google-maps-bundle

ActiveSymfony-bundle[API Development](/categories/api)

cyberjaw/google-maps-bundle
===========================

1.1.0(8y ago)19.1k1[1 issues](https://github.com/cyberJaw/GoogleMapsBundle/issues)MITJavaScriptPHP &gt;=5.6

Since Jul 2Pushed 8y agoCompare

[ Source](https://github.com/cyberJaw/GoogleMapsBundle)[ Packagist](https://packagist.org/packages/cyberjaw/google-maps-bundle)[ RSS](/packages/cyberjaw-google-maps-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (9)Used By (0)

GoogleMapsBundle
================

[](#googlemapsbundle)

Symfony bundle for use google maps in your form

Installation
============

[](#installation)

This bundle is compatible with Symfony &gt;= 2.8

```
composer require cyberjaw/google-maps-bundle

```

Getting Started
===============

[](#getting-started)

First register the bundle in your `AppKernel.php`

```
// app/AppKernel.php

$bundles = array(
    //...
    new CyberJaw\GoogleMapsBundle\GoogleMapsBundle()
    );
```

To enable template and set your Google Maps API key, enter this to your `config.yml`.

```
# app/config/config.yml
## Twig Configuration

twig:
    form_themes:
        - 'GoogleMapsBundle:Form:google_maps_layout.html.twig'

google_maps:
    api_key: 'YOUR_API_KEY'
```

If your assets is not installed after installation run

```
//Symfony 2.8
    php app/console assets:install

//Symfony 3.*
    php bin/console assets:install

```

Usage
=====

[](#usage)

This bundle contains a new FormType called GoogleMapType which can be used in your forms like so:

**Build form:**

```
use CyberJaw\GoogleMapsBundle\Form\Type\GoogleMapsType;

$builder->add('googleMaps', GoogleMapsType::class);
```

**Entity property**

```
class GoogleMaps
{
    protected $latitude;

    protected $longitude;

    protected $city;

    protected $address;

    //Getters and Setters
}
```

Options
=======

[](#options)

```
array(
    'type' => TextType::class,      //Form type
    'lat_type' => TextType::class,  //Latitude form type
    'lng_type' => TextType::class,  //Longitude form type
    'options' => [],                //Form options
    'lat_options' => [],            //Latitude field options
    'lng_options' => [],            //Longitude field options
    'city_options' => [],           //City field options
    'address_options' => [],        //Address field options
    'lat_name' => 'latitude',       //Latitude field name
    'lng_name' => 'longitude',      //Longitude field name
    'city_name' => 'city',          //City field name
    'address_name' => 'address',    //Address field name
    'map_width' => '100%',          //Map box width
    'map_height' => '400px',        //Map box height
    'default_lat' => '42.69',       //Default latitude start
    'default_lng' => '23.32',       //Default longitude start
    'city' => true,                 //City field status
    'address' => true,              //Address field status
    'jquery' => true,               //Enable/Disable jQuery
    'map_template' => 'styled',      //Enter template name (Options: false = default, 'night' = Night template, 'styled' = Styled map template)
    'map_type' => 'terrain',        //Set map type (Options: 'roadmap' and 'terrain')
    'input_placeholder' => 'Enter location', //Set placeholder to search location input
)
```

Features
========

[](#features)

- Getting only map
- Make custom map template
- Integrate another google maps api functions
- Added constraints

Authors
=======

[](#authors)

- **Alexander Dimitrov** - *Initial work* - [cyberJaw](https://github.com/cyberJaw)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

7

Last Release

3284d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f2960f634b684b34ca7c7e580b7f50677995ef471f794541ae20cbe45848798?d=identicon)[cyberJaw](/maintainers/cyberJaw)

---

Top Contributors

[![cyberJaw](https://avatars.githubusercontent.com/u/29367424?v=4)](https://github.com/cyberJaw "cyberJaw (14 commits)")

### Embed Badge

![Health badge](/badges/cyberjaw-google-maps-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/cyberjaw-google-maps-bundle/health.svg)](https://phpackages.com/packages/cyberjaw-google-maps-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

56140.6k2](/packages/sulu-headless-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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