PHP code example of metrique / google-product-taxonomy-php

1. Go to this page and download the library: Download metrique/google-product-taxonomy-php 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/ */

    

metrique / google-product-taxonomy-php example snippets

 sh
composer 
 php
$data = (new Metrique\Taxonomy)->lookupId(1);
$data = (new Metrique\Taxonomy)->lookupCategory('Animals & Pet Supplies > Live Animals');
$data = (new Metrique\Taxonomy)->search('Pet Supplies');