PHP code example of pichongol / fifa-api

1. Go to this page and download the library: Download pichongol/fifa-api 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/ */

    

pichongol / fifa-api example snippets




use FUTApi\Core;
use FUTApi\FutError;
try {
    $fut = new Core('email', 'password', 'secret answer', 'platform', 'backup_code');
} catch(FutError $e) {
    $error = $e->GetOptions();
    die("We have an error logging in: ".$error['reason']);
}
$login = $fut->login();

use FUTApi\Core;
use FUTApi\FutError;
$fut = new Core('email', 'password', 'secret answer', 'platform', 'backup_code');
$fut->setSession($persona, $nucleus, $phishing, $session, $dob);

$items = $fut->searchAuctions('player');
bash
# Install Composer
curl -sS https://getcomposer.org/installer | php