PHPackages                             lianginx/baidu-map-sdk - 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. lianginx/baidu-map-sdk

ActiveLibrary[API Development](/categories/api)

lianginx/baidu-map-sdk
======================

百度地图 PHP SDK

v0.1.0(1y ago)26MITPHP

Since Jan 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lianginx/baidu-map-sdk)[ Packagist](https://packagist.org/packages/lianginx/baidu-map-sdk)[ RSS](/packages/lianginx-baidu-map-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

百度地图 SDK for PHP
================

[](#百度地图-sdk-for-php)

[![GitHub License](https://camo.githubusercontent.com/fbc0e97029dd49df9889eab60492a5da61def2ab909b87c21c312e5adb3024f5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c69616e67696e782f62616964752d6d61702d73646b)](https://github.com/lianginx/baidu-map-sdk/blob/main/LICENSE) [![Packagist Version](https://camo.githubusercontent.com/bfe3d60e0d06970af4986b096a7414900d13633858865261e87c7f52e28f42da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c69616e67696e782f62616964752d6d61702d73646b)](https://packagist.org/packages/lianginx/baidu-map-sdk) [![GitHub Repo stars](https://camo.githubusercontent.com/62a0f10440ceccf70e192318b2eb3f1c2dda5abc5917e446dad946577beb24d5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c69616e67696e782f62616964752d6d61702d73646b)](https://github.com/lianginx/baidu-map-sdk)

出于工作需要对百度地图开放 API 进行封装，封装结构简单易懂，有暂未实现的接口或需要改进的地方欢迎提交 PR。

支持的接口
-----

[](#支持的接口)

- Web 服务 API
- 鹰眼轨迹服务
    - 终端管理
    - 空间搜索
    - 轨迹上传
    - 轨迹查询和纠偏
    - 轨迹分析
    - 地理围栏管理
    - 地理围栏报警

安装
--

[](#安装)

```
composer require lianginx/baidu-map-sdk
```

使用
--

[](#使用)

```
$ak = 'your api key';
$default_service_id = 123456;

$entity = new Entity($ak, $default_service_id);
$entity_name = 'test_entity';

// 新增终端
$entity->add($entity_name);

// 更新终端
$entity->update($entity_name, 'hello world');

// 删除终端
$entity->delete($entity_name);

// 其他接口...
```

许可证
---

[](#许可证)

[MIT](LICENSE)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance43

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

5

Last Release

486d ago

### Community

Maintainers

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

---

Top Contributors

[![lianginx](https://avatars.githubusercontent.com/u/21002250?v=4)](https://github.com/lianginx "lianginx (16 commits)")

---

Tags

baidumap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lianginx-baidu-map-sdk/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[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)
