bureaupartners/extract-address-from-text
Composer 安装命令:
composer require bureaupartners/extract-address-from-text
包简介
With this package you can extract the address from a unformatted text string
README 文档
README
With this package you can extract the address from a unformatted text string
Installation
Install composer packages
composer require bureaupartners/extract-address-from-text
Usage
use BureauPartners\ExtractAddressFromText\AddressExtractor; $extractor = new AddressExtractor($address['text']); $extractor->getAddress(); // Get all information $extractor->getRecipient(); $extractor->getStreet(); $extractor->getHouseNumber(); $extractor->getHouseNumberAddition(); $extractor->getPostalCode(); $extractor->getCity(); $extractor->getCountry()['code'];
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
See LICENSE.md
统计信息
- 总下载量: 7.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-22