PHP code example of innobrain / laravel-libpostal

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

    

innobrain / laravel-libpostal example snippets


return [
    'url' => env('LIBPOSTAL_URL', 'http://localhost:8080'),
];

use Innobrain\Libpostal\Facades\Libpostal;

Libpostal::parseAddress('123 Main St, Springfield, IL 62701');
bash
php artisan vendor:publish --tag="laravel-libpostal-config"