Fantasy Premier League API wrapper for Laravel.
You can install the package via composer:
composer require njaaazi/laravel-fpl
You can publish the config file with:
php artisan vendor:publish --tag="laravel-fpl-config"
This is the contents of the published config file:
return [
"base-url" => env(
"FPL_BASE_URL",
"https://fantasy.premierleague.com/api",
),
];
use Njaaazi\Fpl\FplClient;
$fpl = new FplClient;
$generalInfo = $fpl->generalInfo();
$allFixtures = $fpl->allFixtures();
use Njaaazi\Fpl\Facades\Fpl;
$generalInfo = Fpl::generalInfo();
$allFixtures = Fpl::allFixtures();
vendor/bin/phpunit
or
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.