PHPackages                             liv/baidu-lbs - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. liv/baidu-lbs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

liv/baidu-lbs
=============

百度LBS的PHP library

1.0.0(10y ago)2751PHPPHP ^5.4

Since Aug 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Liv1020/baidu-lbs)[ Packagist](https://packagist.org/packages/liv/baidu-lbs)[ RSS](/packages/liv-baidu-lbs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Baidu LBS云 SDK
==============

[](#baidu-lbs云-sdk)

Baidu LBS云 SDK 提供了一个基于PHP/Java语言的，封装了百度[LBS云](http://lbsyun.baidu.com)各个服务SDK。

感谢：[wangjild](https://github.com/wangjild/lbsyunsdk-baidu)

更新：1、使用composer 2、添加命名空间 3、优化注释 4、优化部分代码逻辑

目录
--

[](#目录)

---

1. [安装/配置](#%E5%AE%89%E8%A3%85/%E9%85%8D%E7%BD%AE)

    composer require liv/baidu-lbs
2. [使用方法](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95)

    2.1 \[存储\]

    ```
     ```php

     $console = new Console();
     $console->setServerAK('KbMeaL3jz0ds1lbG11g3Esys', 'myGUcGyxhZvVOtINr8wrvkbGIxTb9CSG');
     $geoTableId = '116200';

     $search = new NearbySearch($geoTableId, $console, '120.734879,31.288689', 100);
     $nearby = $search->search();
     var_dump($nearby);

     $search = new LocalSearch($geoTableId, $console, 1);
     $search->setSortBy('ClickCount', BasicSearch::DESCEND);
     $search->addFilter('ClickCount', 1, 100);
     $search->addTags('华北');
     $local = $search->search();

     var_dump($local);

     $search = new BoundSearch($geoTableId, $console, '116.383801,39.90112', '116.412475,39.916451');
     $bound = $search->search();

     $search = new DetailSearch($geoTableId, $console, 18460245);
     $detail = $search->search();

     var_dump($detail);

     ```

    ```

    2.1 [检索](#%E6%A3%80%E7%B4%A2)

    ```
     ```php

     $console = new Console();
     $console->setServerAK('KbMeaL3jz0ds1lbG11g3Esys', 'myGUcGyxhZvVOtINr8wrvkbGIxTb9CSG');
     $geoTableId = '116200';

     $search = new NearbySearch($geoTableId, $console, '120.734879,31.288689', 100);
     $nearby = $search->search();
     var_dump($nearby);

     $search = new LocalSearch($geoTableId, $console, 1);
     $search->setSortBy('ClickCount', BasicSearch::DESCEND);
     $search->addFilter('ClickCount', 1, 100);
     $search->addTags('华北');
     $local = $search->search();

     var_dump($local);

     $search = new BoundSearch($geoTableId, $console, '116.383801,39.90112', '116.412475,39.916451');
     $bound = $search->search();

     $search = new DetailSearch($geoTableId, $console, 18460245);
     $detail = $search->search();

     var_dump($detail);

     ```

    ```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3938d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eca8d58fc93deff22b5152606099bdcef7a0d3da0bf3a8a8d585c58dfede9bde?d=identicon)[Pavle Lee](/maintainers/Pavle%20Lee)

---

Top Contributors

[![wangjild](https://avatars.githubusercontent.com/u/1264866?v=4)](https://github.com/wangjild "wangjild (20 commits)")

### Embed Badge

![Health badge](/badges/liv-baidu-lbs/health.svg)

```
[![Health](https://phpackages.com/badges/liv-baidu-lbs/health.svg)](https://phpackages.com/packages/liv-baidu-lbs)
```

###  Alternatives

[fntneves/laravel-transactional-events

Transaction-aware Event Dispatcher for Laravel

3202.6M2](/packages/fntneves-laravel-transactional-events)[ipinfo/ipinfo

The official PHP library for IPinfo, the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier and IP type data sets. Visit our developer docs at https://ipinfo.io/developers.

2891.2M11](/packages/ipinfo-ipinfo)[typo3/cms-recordlist

TYPO3 CMS Recordlist - Lists database records in the TYPO3 backend module (Web&gt;List).

178.0M48](/packages/typo3-cms-recordlist)[neos/eel

The Embedded Expression Language (Eel) is a building block for creating Domain Specific Languages

122.0M27](/packages/neos-eel)

PHPackages © 2026

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