PHP code example of producttrap / driver-tesco
1. Go to this page and download the library: Download producttrap/driver-tesco 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/ */
producttrap / driver-tesco example snippets
use ProductTrap\ProductTrap;
/** @var ProductTrap $productTrap */
$tesco = $productTrap->driver('tesco');
$details = $tesco->find('301511619');
echo $details->unitPrice->format(); // £1.82/100g