ivory / google-map
Google Map API v3 的 PHP 集成 ^8.1
6.1.1
2024-03-01 17:53 UTC
Requires
- php: ^8.1
- php-http/message-factory: ^1.1
- phpdocumentor/reflection-docblock: ^5.3
- symfony/event-dispatcher: ^6.4 || ^7.0
- symfony/property-access: ^6.4 || ^7.0
- symfony/serializer: ^6.4 || ^7.0
Requires (Dev)
- ext-json: *
- friendsofphp/php-cs-fixer: ^3.49
- php-http/cache-plugin: ^2.0
- php-http/guzzle7-adapter: ^1.0
- phpunit/phpunit: ^9.6.16
- phpunit/phpunit-selenium: ^9.0
- symfony/cache: ^6.4 || ^7.0
- symfony/phpunit-bridge: ^6.4 || ^7.0
Suggests
- php-http/client-implementation: Allows to use http services
- php-http/message: Allows to use http services
Replaces
- egeloen/google-map: ^2.0.2
README
快速入门
composer require ivory/google-map
Symfony 扩展包
Github: ivory/google-map-bundle
Packagist: ivory/google-map-bundle
composer require ivory/google-map-bundle
Contao 扩展包
Github: heimrichhannot/contao-google-maps-bundle
Packagist: heimrichhannot/contao-google-maps-bundle
概览
The Ivory Google Map项目为PHP 7.0+项目提供Google Map集成。它允许您通过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]);
文档
测试
该库已通过 PHPUnit 进行了全面的单元测试,代码覆盖率接近 100%。
贡献
我们热爱贡献者!Ivory是一个开源项目。如果您想贡献,请随时提出PR!您可以参考CONTRIBUTING文件,它将解释您如何设置项目。
许可
The Ivory Google Map在MIT许可下。有关完整的版权和许可信息,请阅读与源代码一起分发的LICENSE文件。