Manage your FIFA Ultimate Team with this FIFA 20 WebApp API PHP framework
Manage your FIFA 20 Ultimate Team using this FIFA 20 Ultimate Team API. Written solely in PHP
The recommended way to install FIFA 20 WebApp API is through Composer.
composer require shapecode/fut-api "~20.0@dev"
Don't be shy. Feel free to contribute and create pull-requests. There's a lot to do.
Login parameters:
use FUTApi\Api\Core;
use FUTApi\Exception\FutError;
use FUTApi\Api\Authentication\Account;
use FUTApi\Api\Authentication\Credentials;
use FUTApi\Api\Authentication\Session;
$credentials = new Credentials($email, $password, $platform);
// if you already have a valid session
$session = new Session($persona, $nucleus, $phishing, $session, $dob, $accessToken, $tokenType);
// otherwise
$session = null;
$account = new Account($credentials, $session);
$fut = new Core($account);
try {
$login = $fut->login($code);
$session = $account->getSession();
} catch(FutError $e) {
$reason = $e->getReason();
die("We have an error logging in: ".$reason);
}
After you have initiated your first session, you can then use the API wthout logging in again using the session info.
Optional parameters:
$options = [];
$items = $fut->search($options);
Replicates clicking the Logout button.
$fut->logout();
GNU GPLv3