PHP code example of vasildakov / postcode-parser
1. Go to this page and download the library: Download vasildakov/postcode-parser library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
vasildakov / postcode-parser example snippets
use VasilDakov\Postcode\Parser;
$parser = new Parser('AA9A 9AA');
var_dump($parser->outward()); // AA9A
var_dump($parser->inward()); // 9AA
$components = $parser->parse(); // array