PHPackages                             lyhiving/address - 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. lyhiving/address

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

lyhiving/address
================

PHP China Address Parser

v1.4(4y ago)0247MITPHPPHP &gt;=5.6

Since Sep 17Pushed 4y ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (7)Used By (0)

国内收货地址智能解析
----------

[](#国内收货地址智能解析)

本项目包含2个功能

- 把字符串解析成姓名、收货电话、邮编、身份证号、收货地址
- 把收货地址解析成省、市、区县、街道地址

特色是：***简单易用***

该项目依然采用的是，统计特征分析，然后以最大的概率来匹配，得出大概率的解。因此只能解析中文的收货信息，不能保证100%解析成功，但是从生产环境的使用情况来看，解析成功率保持在96%以上，就算是百度基于人工智能的地址识别，经我实测，也是有一定的不能识别的情况。

少啰嗦，先看东西
--------

[](#少啰嗦先看东西)

[![最简单版本](https://raw.githubusercontent.com/lyhiving/address/master/examples/image/1.png)](https://raw.githubusercontent.com/lyhiving/address/master/examples/image/1.png)

安装
--

[](#安装)

使用 Composer

```
composer require lyhiving/address
```

或

```
{
    "require": {
        "lyhiving/address": "1.*"
    }
}
```

用法
--

[](#用法)

```
