Skip to content

Extracts the results data from every conceivable version of engarde and output in a variety of formats.

Notifications You must be signed in to change notification settings

epeeme/EngardeParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

engardeParser

engardeParser extracts the results data from every conceivable version of the engarde software HTML output and parses into a variety of formats.

Usage

<?php

namespace engarde;
require '../engardeParser.php';

$e = new EngardeParser($engardeResultsURL);
  • parseTitle(): returns the text between TITLE tag

  • parseGenerator(): returns the META Generator value

  • parseProgId(): returns the META ProgId value

  • parseOriginator(): returns the META Originator value

  • parseHeaderBlock(): returns an array of data extracted from the H1 block

  • getMetaData(): returns an array of associated META data

  • getEngardePage(): returns the raw HTML from the engardeResultsURL

  • getAllResults(): returns a parsed array containing all the results

array('Rank', 'Surname', 'Forename', 'Club', 'Country')

The class can also be extended to allow for the results to be returned in a variety of formats.

<?php

namespace engarde;
require '../engardeParser.php';

$e = new EngardeFormatter($engardeResultsURL);
  • getAllResultsCSV(): returns a CSV formatted file of all the results
  • getAllResultsJSON(): returns a JSON formatted representation of all the results

About

Extracts the results data from every conceivable version of engarde and output in a variety of formats.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages