PHPackages                             jiangyong/map - 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. jiangyong/map

ActiveLibrary[API Development](/categories/api)

jiangyong/map
=============

a map API SDK

1.0.2(7y ago)011MITPHP

Since Sep 17Pushed 7y agoCompare

[ Source](https://github.com/jiangyong19910326/map)[ Packagist](https://packagist.org/packages/jiangyong/map)[ RSS](/packages/jiangyong-map/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

 map
=====

[](#-map-)

\#  a map API SDK.

\# [![Build Status](https://camo.githubusercontent.com/087caa87229e849382c490649cac2f96351f5aba836a3339086a925e46417c5c/68747470733a2f2f7472617669732d63692e6f72672f6a69616e67796f6e6731393931303332362f6d61702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jiangyong19910326/map)

安装
--

[](#安装)

```
$ composer require jiangyong/map -vvv
```

配置
--

[](#配置)

```
use Jiangyong\Map\Map;

$key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxx';

$map = new Map($key);
```

通过输入地址获取解析
----------

[](#通过输入地址获取解析)

```
$response = $map->getAddress('IFS国际金融中心','成都')
```

通过输入经纬度获取解析
-----------

[](#通过输入经纬度获取解析)

```
$response = $map->getLocation('104.081298,30.655321');
```

通多输入地址获取解析xml格式 可选参数,json,
--------------------------

[](#通多输入地址获取解析xml格式-可选参数json)

```
$resopnse = $map->getAddress(('IFS国际金融中心','成都','false','xml'))
```

通过输入经纬度获取解析xml格式，可选参数,json
--------------------------

[](#通过输入经纬度获取解析xml格式可选参数json)

```
$resopnse = $map->getLocation(('104.081298,30.655321',1000,'all','false','xml'))
```

在laravel 中的使用
-------------

[](#在laravel-中的使用)

在 Laravel 中使用也是同样的安装方式，配置写在 config/services.php 中 加入：

```
 'map' => [
        'key' => env('MAP_API_KEY'),
    ],
```

然后在 .env 中配置 WEATHER\_API\_KEY ：

```
MAP_API_KEY=xxxxxxxxxxxxxxxxxxxxx
```

TODO

Contributing
------------

[](#contributing)

You can contribute in one of three ways:

1. File bug reports using the [issue tracker](https://github.com/jiangyong/map/issues).
2. Answer questions or fix bugs on the [issue tracker](https://github.com/jiangyong/map/issues).
3. Contribute new features or update the wiki.

*The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.*

License
-------

[](#license)

MIT

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

3

Last Release

2797d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca84779609892ea9c2ba9e85cd0c500499294af9e2e34190c99ccb00e32ed0ae?d=identicon)[jiangyong19910326](/maintainers/jiangyong19910326)

### Embed Badge

![Health badge](/badges/jiangyong-map/health.svg)

```
[![Health](https://phpackages.com/badges/jiangyong-map/health.svg)](https://phpackages.com/packages/jiangyong-map)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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