2017 © Pedro Peláez
 

library thesportsdb

PSR-4 API library for thesportsdb.com

image

jelle-s/thesportsdb

PSR-4 API library for thesportsdb.com

  • Friday, September 23, 2016
  • by Jelle-S
  • Repository
  • 3 Watchers
  • 5 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

TheSportsDb

PHP Library to connect to the api of http://thesportsdb.com/, (*1)

Example code

<?php

include_once __DIR__ . '/default_bootstrap.php';

// Get all sports.
$sports = $db->getSports();

// Print the first sport.
$sport = reset($sports);
print_r($sport->raw());

// Get the leagues of this sport (lazy loaded).
$leagues = $sport->getLeagues();

// Print the first league.
$league = reset($leagues);
print_r($league->raw());

// Get the seasons for this league.
$seasons = $league->getSeasons();

// Print the first season.
$season = reset($seasons);
print_r($season->raw());

// Get the events for this league.
$events = $season->getEvents();

// Print the first event.
$event = reset($events);
// Trigger lazy load, the full event object will be loaded when calling $event->raw().
$event->getName();
print_r($event->raw());

Code Climate Scrutinizer Code Quality Codacy Badge SensioLabsInsight Build Status, (*2)

Code Coverage, (*3)

The Versions

23/09 2016

dev-master

9999999-dev

PSR-4 API library for thesportsdb.com

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jelle Sebreghts

23/09 2016

1.1.1

1.1.1.0

PSR-4 API library for thesportsdb.com

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jelle Sebreghts

23/09 2016

1.1.0

1.1.0.0

PSR-4 API library for thesportsdb.com

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jelle Sebreghts

16/09 2016

1.0.0

1.0.0.0

PSR-4 API library for thesportsdb.com

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

by Jelle Sebreghts

24/05 2016

0.1.0

0.1.0.0

PSR-4 API library for thesportsdb.com

  Sources   Download

GPL-3.0+

The Requires

 

by Jelle Sebreghts