1. Go to this page and download the library: Download haringsrob/icecat 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/ */
haringsrob / icecat example snippets
// Use the class.
use haringsrob\Icecat\Model\Result;
// See IcecatFetcher on how to get data or implement your own way.
$data = $fetcher->getBaseData();
// Initialize.
$icecat = new Result($data);
// Brand name. e.g.: Acer
$icecat->getSupplier();
// Long description of the product.
$icecat->getLongDescription();
// Short description.
$icecat->getShortDescription();
// The category the product belongs to. e.g.: Notebooks
$icecat->getCategory();
// Returns maximum 5 images about the product (optional limit).
$icecat->getImages(5);
// Returns key => value array with specifications. e.g: ['cpu' => 'Core I5', 'screensize' => '15.6']
$icecat->getSpecs();
// Returns array with videos of the product.
$icecat->getVideos();
// Returns array with manuals.
$icecat->getManuals();
// Returns array with 360 images.
$icecat->get360imageArray();
// Returns array with Reasons to Buy.
$icecat->getReasonsToBuy();
// Use the class.
use haringsrob\Icecat\Model\Fetcher;
// Inititialize.
$fetcher = new Fetcher(
'Username',
'Password',
'Ean',
'Language'
);
// Fetch the actual data.
$data = $fetcher->fetchBaseData();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.