PHP code example of killworm737 / twaddress

1. Go to this page and download the library: Download killworm737/twaddress 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/ */

    

killworm737 / twaddress example snippets


use Killworm737\Twaddress\Address;

$rule = new Address();
$str = '桃園市龜山區山頂里2鄰正興街10巷5號';

$arr = $rule->get($str);