sbolch/address-parser 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sbolch/address-parser

最新稳定版本:v1.0.2

Composer 安装命令:

composer require sbolch/address-parser

包简介

Address parser

README 文档

README

Can parse a physical address into its parts.

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:

$ composer require sbolch/address-parser

This command requires you to have Composer installed globally, as explained in the installation chapter of Composer documentation.

Usage

$locale = 'HU';
$parser = new \sbolch\AddressParser\Parser($locale);

$parser->parse('1152 Budapest, Szentmihályi út 167');

/*
This returns:
Array
(
    [zip] => 1152
    [city] => Budapest
    [street] => Szentmihályi
    [streetType] => út
    [houseNumber] => 167
    [houseNumberInfo] =>
)
*/

Note: Only Hungarian address format is supported yet. You can request another locale for me to do or create a pull request by implementing \sbolch\AddressParser\ParserInterface into \sbolch\AddressParser\Parser namespace with your own locale's class. You can place your custom files into the locales folder under your locale.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固