jadgray/full-time-api

A simple tool to help obtain fixture information from the FA Full-Time system.

1.0.0 2022-06-12 16:11 UTC

This package is auto-updated.

Last update: 2024-05-13 12:01:51 UTC


README

PHP Unit Tests

A simple tool to help obtain fixture information from the FA Full-Time system.

Requirements

  • PHP >= 7.2

Installation

composer require jadgray/full-time-api

Basic information needed for a request

To obtain information from the Full-Time system you will need a Season ID and Group ID, these can be obtained by visiting your desired division you'd like to access and extracting these from the URL.

e.g. selectedSeason=1234 & FixtureGroupKey=1_234

Get a team list

    use Jadgray\FullTimeApi\Division;
    
    $teams = (new Division())->getTeams(1234, '1_234');

Example output

Get unformatted fixtures

    use Jadgray\FullTimeApi\Division;
    
    $fixtures = (new Division())->getFixtures(1234, '1_234');

Example output

Get formatted fixtures

    use Jadgray\FullTimeApi\Division;
    
    $fixtures = (new Division())->getFormattedFixtures(1234, '1_234');

Example output

Get unformatted results

    use Jadgray\FullTimeApi\Division;
    
    $results = (new Division())->getResults(1234, '1_234');

Example output

Get formatted results

    use Jadgray\FullTimeApi\Division;
    
    $results = (new Division())->getFormattedResults(1234, '1_234');

Example output