承接 nmfzone/google-static-map-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

nmfzone/google-static-map-laravel

最新稳定版本:v1.8.7

Composer 安装命令:

composer require nmfzone/google-static-map-laravel

包简介

Generates a static map using Google Map

README 文档

README

Generate static map using Google Map API in Laravel.

Installation

Requirements

>= PHP 7.1

Installation in Laravel 5.5 and up

$ composer require nmfzone/google-static-map-laravel

The package will automatically register itself.

Installation in Laravel 5.4

$ composer require nmfzone/google-static-map-laravel

Next up, the service provider must be registered:

// config/app.php

'providers' => [
    ...
    NMFCODES\GoogleStaticMap\GoogleStaticMapServiceProvider::class,
];

If you want to make use of the facade you must install it as well:

// config/app.php

'aliases' => [
    ...
    'GoogleStaticMap' => NMFCODES\GoogleStaticMap\GoogleStaticMapFacade::class,
];

If you want to change the default config, you must publish the config file:

$ php artisan vendor:publish --provider="NMFCODES\GoogleStaticMap\GoogleStaticMapServiceProvider"

Installation in Lumen

$ composer require nmfzone/google-static-map-laravel

Next up, the service provider must be registered:

// bootstrap/app.php

$app->register(NMFCODES\GoogleStaticMap\GoogleStaticMapServiceProvider::class);

Usage

Using facade (with default config),

GoogleStaticMap::setCenter('Yogyakarta')->getUrl();

If you want to use the default marker, you can call make($latitude, $longitude) first:

GoogleStaticMap::make('-7.797068', '110.370529')->getUrl();

GoogleStaticMap::make('-7.797068', '110.370529')->setCenter('Indonesia')->setZoom('4')->getUrl();

Security

If you discover any security related issues, please email 123.nabil.dev@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 1.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-12-04