PHPackages                             tinymeng/intelligent-parse - 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. tinymeng/intelligent-parse

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

tinymeng/intelligent-parse
==========================

Intelligent address parser for PHP

v1.0.3(1y ago)120MITPHPPHP &gt;=7.0.0

Since Nov 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/majiameng/intelligent-parse-php)[ Packagist](https://packagist.org/packages/tinymeng/intelligent-parse)[ RSS](/packages/tinymeng-intelligent-parse/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

收货地址智能解析（纯PHP版）
===============

[](#收货地址智能解析纯php版)

本项目包含2个功能

- 把字符串解析成姓名、收货电话、邮编、身份证号、收货地址
- 把收货地址解析成省、市、区县、街道地址
- 支持提取虚拟号码有分机号的情况（适用美团，拼多多等需要保护客户隐私的情况 2022.11.13更新）

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

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

1.安装
----

[](#1安装)

> composer require tinymeng/intelligent-parse -vvv

PHP 请安装并开启 mbstring 扩展

### 使用

[](#使用)

so easy；

```
$address = new \tinymeng\parse\Address();
$res = $address->parse("收货地址张三收货地址：成都市武侯区美领馆路11号附2号 617000  136-3333-6666");
var_dump($res);
```

结果为：

```
array(12) {
  ["province_id"]=>
  int(510000)
  ["province"]=>
  string(9) "四川省"
  ["city_id"]=>
  int(510100)
  ["city"]=>
  string(9) "成都市"
  ["region_id"]=>
  int(0)
  ["region"]=>
  string(9) "武侯区"
  ["street"]=>
  string(24) "美领馆路11号附2号"
  ["postcode"]=>
  string(6) "617000"
  ["name"]=>
  string(6) "张三"
  ["mobile"]=>
  string(11) "13633336666"
  ["idcard"]=>
  string(0) ""
  ["address"]=>
  string(42) "成都市武侯区美领馆路11号附2号"
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance43

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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 ~11 days

Total

4

Last Release

510d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

phptoolstinymengaddress parse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tinymeng-intelligent-parse/health.svg)

```
[![Health](https://phpackages.com/badges/tinymeng-intelligent-parse/health.svg)](https://phpackages.com/packages/tinymeng-intelligent-parse)
```

PHPackages © 2026

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