In order to use this package you must first install Composer and then run the command
composer require phpoffice/phpspreadsheet
You then have to change the autoload.php directory in config.php to the correct path, which in Windows typically looks like:
define('COMPOSER_AUTOLOAD_DIR', 'C:/Users/<USER-NAME>/vendor/autoload.php');In order to load the file contents simply use the standard PHP function file_get_contents which reads the entire content of the file into a string.
To convert that content into an array of Event objects use the method Event::getEvents($simulation_output) (don't forget to include the file 'lib/event.php'). Here's an example from parser.php:
include 'lib/event.php';
include 'lib/table.php';
$simulation_output = file_get_contents(SIM_OUTPUT_FILE_PATH, FALSE); // Load the simulation output
$events = Event::getEvents($simulation_output); // Fetch all the events (creates an array of Event objects)