dreamxzr/amap-api

基于laravel的高德开放平台api扩展包

dev-master 2019-10-14 09:10 UTC

This package is auto-updated.

Last update: 2024-10-14 20:41:29 UTC


README

基于laravel的高德开放平台api扩展包

使用要求

  • PHP >=7.0
  • Laravel >= 5.5

安装

$ composer require dreamxzr/amap-api -vvv

配置

1.发布配置文件

php artisan vendor:publish --provider="Dreamxzr\AmapApi\ServiceProvider"

2.在.env文件添加

AMAP-KEY=高德开放平台api

使用

1.天气接口

app('amap-weather')->getWeather('城市名');

License

MIT