1. Go to this page and download the library: Download 3brettb/fantasynfl library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
3brettb / fantasynfl example snippets
/**
* Perform Fantasy NFL Login actions
*
* @param Request $request
* @param $user
*/
public function authenticated(Request $request, $user)
{
FantasyNFL::login($user);
}
FantasyNFL::roster($team_id);
FantasyNFL::find($league_id);
$league->activity()
$activity->involved[0]->get()
$activity->links[0]->a_tag();
$league->divisions()
// -- or --
$league->division($division_id)
$division->teams()
$league->week() // to get current week
$league->week($week_number) // to get specific week of current season
$league->week($week_number, $year) // returns week of the given season and number
$league->season() // to get current season
$league->season($year) // to get specific season by year
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.