awaluk/helion-special-offer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

awaluk/helion-special-offer

Composer 安装命令:

composer require awaluk/helion-special-offer

包简介

Library to download daily special offer from Helion

README 文档

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);
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.

License

MIT

统计信息

  • 总下载量: 17
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固