dev-master
9999999-dev https://github.com/iansltx/pnwphp-2017-schedule-clientA nicely-wrapped scraper for the PNWPHP 2017 conference schedule
MIT
The Requires
- php >=7.1
- fabpot/goutte ^3.2
by Ian Littman
conference pnwphp
A nicely-wrapped scraper for the PNWPHP 2017 conference schedule
Scrapes the PNWPHP 2017 schedule, providing a list of conference events., (*1)
This file is syntactically valid PHP, so you can run it to see how the examples work. And yes, that's why there are close-tags everywhere., (*2)
To start, composer require iansltx/pnwphp-2017-schedule-client
. Then:, (*3)
getSchedule(); // make the call to the PNWPHP website and scrape the schedule ?>
A schedule is an event collection with a few convenience methods, containing Event objects, which implement __toString() and jsonSerialize(). Both return a string suitable for display, so if you want more data in your JSON blob you'll want to pull data out of each event manually., (*4)
filterOutPast(new \DateTimeImmutable('2017-09-10'))->first() . ".\n"); ?>
A nicely-wrapped scraper for the PNWPHP 2017 conference schedule
MIT
conference pnwphp