postcode:英国邮政编码ValueObject

时间:2021-05-17 23:26:43
【文件属性】:
文件名称:postcode:英国邮政编码ValueObject
文件大小:18KB
文件格式:ZIP
更新时间:2021-05-17 23:26:43
PHP 英国邮政编码ValueObject 概要 代表英国邮政编码的 安装 这是一个composer.json文件的最小示例,该文件仅定义了对邮政编码的依赖: { "require": { "vasildakov/postcode": "^1.1" } } 程式码范例 创建一个邮政编码对象 use VasilDakov \ Postcode \ Postcode ; // Create a Postcode $ postcode = new Postcode ( 'EC1V 9LB' ); // Validate Postcode value print $ postcode -> valid (); 执行简单的验证,解析和规范化 $ postcode ->normalise() // => "EC1V 9LB" $ postcode ->outcod
【文件预览】:
postcode-master
----.coveralls.yml(70B)
----src()
--------Patterns.php(1KB)
--------Postcode.php(9KB)
--------Exception()
--------PostcodeInterface.php(1KB)
----phpunit.xml.dist(788B)
----.travis.yml(361B)
----LICENSE(1KB)
----composer.lock(67KB)
----build()
--------.gitignore(17B)
----test()
--------PostcodeTest.php(7KB)
----README.md(6KB)
----.gitignore(40B)
----composer.json(792B)

网友评论