vasildakov / postcode-parser
UK Postcode Parser
1.0.2
2016-10-07 00:32 UTC
Requires
- php: >=5.6
- vasildakov/postcode-validator: ^1.0
Requires (Dev)
- phpunit/php-code-coverage: ~3
- phpunit/phpunit: ^4.7|^5.0
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.3
Suggests
- vasildakov/postcode: ^1.1
- vasildakov/postcode-doctrine: ^1.0
This package is not auto-updated.
Last update: 2024-12-21 21:14:15 UTC
README
Installation
The preferred method of installation is via Packagist and Composer. Run the following command to install the package and add it as a requirement to your project's composer.json:
composer require vasildakov/postcode-parser
Examples
<?php use VasilDakov\Postcode\Parser; $parser = new Parser('AA9A 9AA'); var_dump($parser->outward()); // AA9A var_dump($parser->inward()); // 9AA $components = $parser->parse(); // array
License
Code released under the MIT license