This repository provides an API for accessing a variety of Rugby fixture and result data.
To run the project locally, use the inbuilt web server:
php -S 0.0.0.0:4000 -t public/
To run tests:
./vendor/bin/phpunit
{
home_team: {
name: "Gloucester Rugby"
},
away_team: {
name: "Leicester Tigers"
},
home_score: "31",
away_score: "38",
location: "Kingsholm",
kickoff: "2016-09-02T18:45:00+00:00",
links: [{
rel: "home_team_fixtures",
uri: "/fixtures/aviva/gloucester rugby"
}, {
rel: "away_team_fixtures",
uri: "/fixtures/aviva/leicester tigers"
}]
}
{
position: "1",
team: "bath",
played: "2",
won: "2",
drawn: "0",
lost: "0",
for: "76",
against: "19",
bonus_points: "1",
points: "9"
}
Available leagues:
aviva
pro12
{
data: [
<Table Row />,
<Table Row />,
...
]
}
Available leagues:
aviva
pro12
{
data: [
<Fixture />,
<Fixture />,
...
]
}
Available teams:
aviva
northampton Saints
exeter chiefs
saracens
bath rugby
leicester tigers
wasps
sale sharks
harlequins
gloucester rugby
newcastle falcons
bristol rugby
pro12
munster rugby
edinburgh rugby
ospreys
benetton treviso
scarlets
ulster rugby
connacht rugby
newport gwent dragons
glasgow warriors
leinster rugby
zebre
cardiff blues
{
data: [
<Fixture />,
<Fixture />,
...
]
}