tomtomklima / daysoftheyearscraper
想要包含酷炫的日子?这里有你的工具!
dev-master
2016-12-11 00:40 UTC
Requires
- php: >=5.6.0
- ezyang/htmlpurifier: ^4.8
- sunra/php-simple-html-dom-parser: ^1.5
This package is auto-updated.
Last update: 2024-09-17 18:38:28 UTC
README
想要获取特定日期或月份的酷炫事件列表?你找到了正确的包!
安装
composer`require tomtomklima/daysoftheyearscraper
使用
require_once __DIR__ .'/vendor/autoload.php'; $scraper = new tomtomklima\DaysOfTheYearScraper\DaysOfTheYearScraper(); $json = $scraper->getMonth(2016, 03);``` ##Content Function getMonth returns object of elements; each element has header, description, link to actual page and object img with src and alt text.