Note Requires PHP 8.1+
Clone the repository:
$ git clone git@github.com:PHPSussex/phpsussex.github.io.git phpsussex.uk
$ cd phpsussex.uk
Start the local server:
$ ./bin/serve.sh
Navigate to localhost:8000.
The event.php
script fetches the latest event from the Meetup website and inserts it in index.html
:
$ php event.php
It uses Symfony's BrowserKit, HTTP Client and CssSelector components to scrape the event from the group's page.
The event.yml
GitHub workflow automatically runs every day at midnight to update and commit index.html
if a newer event was published.
If the workflow suddenly starts failing, it's probably because the Meetup website layout has changed.