2017 © Pedro Peláez
 

library helion-special-offer

Library to download daily special offer from Helion

image

awaluk/helion-special-offer

Library to download daily special offer from Helion

  • Saturday, September 16, 2017
  • by awaluk
  • Repository
  • 1 Watchers
  • 3 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Helion Special Offer

Travis, (*1)

Simple library to read data from Helion.pl special daily offer., (*2)

Thanks to Helion for preparing data as JSON., (*3)

Download

With Composer, (*4)

composer require awaluk/helion-special-offer

or download release., (*5)

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);
Name Description Default value
$partnerNumber Partner number from Helion -
$coverSize Width of cover image (available values: 65, 72, 88, 120, 125, 181, 326) 326
$file Location and name cache file without cache

Available data

Method Book object Returned value
getTitle() Book title
getOldPrice() Book price before promotion
getPromotionPrice() Book price in promotion
getLink() Link to book in helion.pl
getCoverLink() Link to book cover
getToCartLink() Link adding book to cart

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., (*6)

License

MIT, (*7)

The Versions

16/09 2017

dev-master

9999999-dev

Library to download daily special offer from Helion

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

16/09 2017

v1.1

1.1.0.0

Library to download daily special offer from Helion

  Sources   Download

MIT

The Requires

  • php >=7

 

The Development Requires

03/03 2017

v1.0

1.0.0.0

Library to download daily special offer from Helion

  Sources   Download

MIT

The Requires

  • php >=7