Skip to content

PHPSussex/phpsussex.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Sussex Website

Usage

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.

How it works

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.

About

PHP Sussex website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published