Download the PHP package glitter1105/address-parser without Composer

On this page you can find all versions of the php package glitter1105/address-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package address-parser

PHP 中国地址解析器 (Address Parser)

PHP Version

一个强大的 PHP 中国地址解析器,能够智能解析混合文本中的用户信息和地址信息。支持从复杂的地址字符串中精确提取省市区、街道地址、用户姓名、手机号码、身份证号、邮政编码等信息。

✨ 主要特性

🎯 智能地址解析

👤 用户信息提取

🛡️ 可靠性保障

📦 安装方式

使用 Composer 安装(推荐)

手动安装

  1. 下载源码包
  2. 解压到你的项目目录
  3. 引入 autoload 文件:

🚀 快速开始

基础用法

仅解析地址信息

📋 使用示例

示例 1: 标准格式地址

示例 2: 包含身份证和邮编的地址

示例 3: 复杂格式地址

示例 4: 批量处理

🔧 高级用法

异常处理

自定义处理逻辑

🏗️ 系统要求

📊 支持的地址格式

省级行政区

地级行政区

县级行政区

🎯 算法特点

地址解析算法

  1. 预处理阶段

    • 清理空格、标点符号等干扰字符
    • 标准化行政区划名称表述
    • 移除常见的非地名关键词
  2. 关键词提取

    • 基于位置感知的关键词识别
    • 优先级排序:区县 > 市 > 省
    • 特殊地名格式处理
  3. 智能匹配
    • 多级行政区划数据库匹配
    • 同名地名的歧义性解决
    • 不完整地址的智能补全

用户信息提取算法

  1. 正则表达式匹配

    • 手机号: 支持11位手机号和各种座机格式
    • 身份证: 支持18位和15位格式
    • 邮政编码: 6位数字格式
  2. 启发式姓名识别
    • 基于词长度和位置的姓名推断
    • 常见姓名模式识别
    • 与其他信息的上下文关联

🚨 注意事项

  1. 数据准确性: 解析结果的准确性取决于输入地址的完整性和规范性
  2. 性能考虑: 对于大批量数据处理,建议适当控制并发数量
  3. 字符编码: 确保输入数据使用 UTF-8 编码
  4. 特殊字符: 避免使用特殊符号和表情符号

🤝 贡献指南

我们欢迎任何形式的贡献!

报告问题

提交代码

  1. Fork 本项目
  2. 创建特性分支 (git checkout -b feature/amazing-feature)
  3. 提交更改 (git commit -m 'Add some amazing feature')
  4. 推送到分支 (git push origin feature/amazing-feature)
  5. 创建 Pull Request

开发规范

📄 许可证

本项目采用 MIT 许可证。详情请查看 LICENSE 文件。

🙏 致谢

📞 联系方式

🔗 相关链接


⭐ 如果这个项目对你有帮助,请给我们一个 Star!


All versions of address-parser with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-mbstring Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package glitter1105/address-parser contains the following files

Loading the files please wait ....