class ParseEvents (View source)

The ParseEvents class is responsible for parsing a list of events from HTML and returning an array of EventDTOs.

It uses the Symfony DomCrawler to extract relevant information from the HTML structure.

Example usage: $html = file_get_contents('events_list.html'); $parser = new ParseEvents(); $events = $parser($html); // $events will contain an array of EventDTOs with the parsed event details

Methods

array
__invoke(string $html)

Parse a list of events from HTML and return an array of EventDTOs.

Details

array __invoke(string $html)

Parse a list of events from HTML and return an array of EventDTOs.

Parameters

string $html

Return Value

array