Google Map API v3 integration for PHP 5.6+.
Clone or download
Permalink
Failed to load latest commit information.
doc Fix POST_CODE const in docs (#248) Jul 13, 2017
docker append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
src append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
tests append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
travis append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
.env.dist [Docker] Add HHVM container (#215) Feb 8, 2017
.gitattributes Bump Symfony to 2.7 + Add AppVeyor support (#220) Feb 26, 2017
.gitignore Add docker support (#213) Feb 4, 2017
.php_cs [Composer] Upgrade friendsofphp/php-cs-fixer to 2.x Jan 26, 2017
.scrutinizer.yml [Scrutinizer] Add configuration file Jan 14, 2017
.travis.yml Minor static map improvements + Fix tests (#238) May 27, 2017
CHANGELOG.md Prepare 2.0.2 release May 27, 2017
CONTRIBUTING.md Add docker support (#213) Feb 4, 2017
LICENSE [License] Happy new year Jan 14, 2017
README.md Fix wrong class name in readme (#230) Apr 7, 2017
UPGRADE-1.0.md [2.0] Refactor core (#134) Aug 12, 2016
UPGRADE-2.0.md [Composer] Refine lowest deps (#156) Aug 16, 2016
appveyor.yml append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
composer.json [Tests] Fix Httplug deprecations Apr 7, 2017
docker-compose.yml append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
phpunit.ci.xml append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017
phpunit.xml.dist append colon to encoded polylines in distance matrix query (#243) Jun 24, 2017

README.md

README

Travis Build Status AppVeyor Build status Code Coverage Scrutinizer Code Quality Dependency Status

Latest Stable Version Latest Unstable Version Total Downloads License

Overview

The Ivory Google Map project provides a Google Map integration for your PHP 5.6+ project. It allows you to manage map, controls, overlays, events & services through the Google Map API v3.

use Ivory\GoogleMap\Helper\Builder\ApiHelperBuilder;
use Ivory\GoogleMap\Helper\Builder\MapHelperBuilder;
use Ivory\GoogleMap\Map;

$map = new Map();

$mapHelper = MapHelperBuilder::create()->build();
$apiHelper = ApiHelperBuilder::create()
    ->setKey('API_KEY')
    ->build();

echo $mapHelper->render($map);
echo $apiHelper->render([$map]);

Documentation

You're currently browsing the 2.x documentation, if you're using the 1.x, read this documentation instead.

Testing

The library is fully unit tested by PHPUnit with a code coverage close to 100%. To execute the test suite, check the travis configuration.

Contribute

We love contributors! Ivory is an open source project. If you'd like to contribute, feel free to propose a PR! You can follow the CONTRIBUTING file which will explain you how to set up the project.

License

The Ivory Google Map is under the MIT license. For the full copyright and license information, please read the LICENSE file that was distributed with this source code.