PHP API wrapper for supernovafantasyfootball.com
danabrey/supernova-api is a Laravel package for php api wrapper for supernovafantasyfootball.com.
It currently has 0 GitHub stars and 393 downloads on Packagist (latest version v0.2.1).
Install it with composer require danabrey/supernova-api.
Discover more Laravel packages by danabrey
or browse all Laravel packages to compare alternatives.
Last updated
PHP library for interacting with the read-only Supernova Fantasy Football API.
composer require danabrey/supernova-api
Create an instance of the client
$client = new DanAbrey\SupernovaApi\SupernovaApiClient('api_key_here');
An API key is required to interact with the Supernova API. This must be passed into the client as the only argument.
$client->leagues('xxxxx') where xxxxx is the user's email address for list of user's leagues basic info
$client->league(xxxxx) where xxxxx is the league ID for league settings and franchise info
All methods return either a single instance, or an array of, objects that represent the data returned. e.g. SupernovaLeague
It is your responsibility to abide by the terms of the Supernova API.
./vendor/bin/phpunit tests