PHPackages                             yoozi/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. [API Development](/categories/api)
4. /
5. yoozi/lbs

AbandonedArchivedLibrary[API Development](/categories/api)

yoozi/lbs
=========

百度 LBS WEB 服务 API 的 PHP 封装实现.

1.0.8(11y ago)6443MITPHPPHP &gt;=5.3.0

Since Aug 19Pushed 10y ago12 watchersCompare

[ Source](https://github.com/yoozi/LBS)[ Packagist](https://packagist.org/packages/yoozi/lbs)[ Docs](http://golem.yoozi.cn/)[ RSS](/packages/yoozi-lbs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

LBS
===

[](#lbs)

[![Build Status](https://camo.githubusercontent.com/704c8ae1b9766a77e6029b59273a99a8721b5876d562261c4700e58804610ffb/68747470733a2f2f7472617669732d63692e6f72672f43616c6c776f6f6c612f4c42532e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Callwoola/LBS)

> This library is part of [Project Golem](http://golem.yoozi.cn/), see [yoozi/golem](https://github.com/yoozi/golem) for more info.

本 LBS 库是[百度地图 LBS WEB API](http://developer.baidu.com/map/webservice.htm) 的简单 PHP 封装。目前支持如下几个 API：

- [Place API](http://developer.baidu.com/map/wiki/index.php?title=webapi/guide/webservice-placeapi)
- [Place Suggestion API](http://developer.baidu.com/map/wiki/index.php?title=webapi/place-suggestion-api)
- [Geocoding API](http://developer.baidu.com/map/wiki/index.php?title=webapi/guide/webservice-geocoding)
- [IP 定位 API](http://developer.baidu.com/map/wiki/index.php?title=webapi/ip-api)

Installation
------------

[](#installation)

The best and easy way to install the Golem package is with [Composer](https://getcomposer.org).

1. Open your composer.json and add the following to the require array:

    ```
    "yoozi/lbs": "1.0.*"

    ```
2. Run Composer to install or update the new package dependencies.

    ```
    php composer install

    ```

    or

    ```
    php composer update

    ```

Usage Example
-------------

[](#usage-example)

以下使用 Place Suggestion API 查询关键词为 `广州市` `尚德大厦` 地标信息：

```
