Giter VIP home page Giter VIP logo

address-parse's Introduction

收货地址智能解析

将连在一起的收获信息解析成单个信息方便录入.

项目不能保证100%解析成功,从使用情况来看,解析成功率保持在99%以上。

如果有什么问题或建议,可以 提交Github Issue

解析地址 :

1.调用方法

$address    = '身份证号:51250119910927226x 收货地址张三收货地址:成都市武侯区美领馆路11号附2号 617000  136-3333-6666 ';
$res        = AddressParse::getDetail($address)

2.返回数组

[
    'name'              => '张三',
    'mobile'            => 13633336666,
    'id_card'           => '51250119910927226X',
    'zip_code'          => 617000,
    'province'          => [
        'code' => 510000,
        'name' => '四川省',
    ],
    'city'              => [
        'code' => 510100,
        'name' => '成都市',
    ],
    'district'          => [
        'code' => 510107,
        'name' => '武侯区',
    ],
    'formatted_address' => '美领馆路11号附2号'
];

联系作者:

address-parse's People

Contributors

removemiss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.