awaluk/helion-special-offer

Library to download daily special offer from Helion

v1.1 2017-09-16 12:35 UTC

This package is not auto-updated.

Last update: 2024-09-28 08:19:47 UTC


README

Travis

Simple library to read data from Helion.pl special daily offer.

Thanks to Helion for preparing data as JSON.

Download

With Composer

composer require awaluk/helion-special-offer

or download release.

Example

<?php

// autoload from composer
require_once 'vendor/autoload.php';

// create new class to data operations
$data = new awaluk\HelionSpecialOffer\Data('xx', 326, false);
// getting new book object
$book = $data->getBook();
// show data, for example book title
echo $book->getTitle();

Configuration

new awaluk\HelionSpecialOffer\Data($partnerNumber, $coverSize, $file);

Available data

Attention!

If you using cache file, add execution $data->download(); to CRON everyday at moment after midnight. If you don't, the book will not be updated.

License

MIT