2017 © Pedro Peláez
 

library icecat

Icecat data fetching class

image

haringsrob/icecat

Icecat data fetching class

  • Thursday, March 15, 2018
  • by harings_rob
  • Repository
  • 5 Watchers
  • 6 Stars
  • 458 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 5 Versions
  • 4 % Grown

The README.md

Icecat

Build Status Code Climate, (*1)

Icecat is a PHP library, that assists you in the following 2 procedures: * Fetching data from the Icecat database using basic product information. * Parsing this data from the Icecat response, and using them in real life applications., (*2)

About Icecat

Icecat is an open catalog, providing free access to thousands of product datasheets. In extend, when taking a subscription, the amount of accessible datasheets are increased., (*3)

There is a list of Icecat sponsor brands., (*4)

Installation

The library can be installed using composer:, (*5)

"haringsrob/icecat": "dev-master"

Usage

The class library is, in it's current state easy to be used., (*6)

Result

The Icecat class is responsible for parsing the data. It includes a few basic methods, but you can easily create your own implementation by implementing the IcecatInterface interface., (*7)

// 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();


Demo is soon available., (*8)

Fetcher

The IcecatFetcher is responsible for fetching the data from the database., (*9)

// Use the class.
use haringsrob\Icecat\Model\Fetcher;

// Inititialize.
$fetcher = new Fetcher(
    'Username',
    'Password',
    'Ean',
    'Language'
);

// Fetch the actual data.
$data = $fetcher->fetchBaseData();

Integrations

Drupal module under active development., (*10)

The Versions

15/03 2018

dev-master

9999999-dev https://github.com/haringsrob/icecat

Icecat data fetching class

  Sources   Download

MIT

The Requires

 

The Development Requires

icecat

13/08 2017

2.0.0.x-dev

2.0.0.9999999-dev https://github.com/haringsrob/icecat

Icecat data fetching class

  Sources   Download

MIT

The Requires

 

The Development Requires

icecat

08/08 2017

dev-cdata-tests

dev-cdata-tests https://github.com/haringsrob/icecat

Icecat data fetching class

  Sources   Download

MIT

The Requires

 

The Development Requires

icecat

06/08 2017

1.0.0

1.0.0.0 https://github.com/haringsrob/icecat

Icecat data fetching class

  Sources   Download

MIT

The Requires

 

The Development Requires

icecat

01/11 2016

dev-develop

dev-develop https://github.com/haringsrob/icecat

Icecat data fetching class

  Sources   Download

MIT

The Requires

 

The Development Requires

icecat