PHP code example of kzykhys / portable-zipcode-api

1. Go to this page and download the library: Download kzykhys/portable-zipcode-api 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/ */

    

kzykhys / portable-zipcode-api example snippets


GET /zip.phar.php/version

GET /zip.phar.php/api

GET  /zip.phar.php/search/{code}
GET  /zip.phar.php/search/{code}.{format}
POST /zip.phar.php/search
 sh
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar install
 sh
$ php app/console.php csv:download
 sh
$ php app/console.php doctrine:schema:update --force
$ php app/console.php csv:import ./csv
 sh
$ php app/console.php build:phar