PHP code example of apo / customs-tariff

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

    

apo / customs-tariff example snippets


    $ct =  new CustomsTariff('food');
    $ct->getList();

    $ct =  new CustomsTariff();
    $ct->search('almond');
    $ct->toJson();

    $ct =  new CustomsTariff();
    $ct->search('tuna');
    $ct->setLimit(10)
    $ct->toJson();

    $ct =  new CustomsTariff();
    $ct->findCode('0302310000');
    $ct->toJson();