1. Go to this page and download the library: Download mwgg/iracing-php 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/ */
mwgg / iracing-php example snippets
use iRacingPHP\iRacing;
$iracing = new iRacing('[email protected]', 'iRacingPassword');
$summary = $iracing->stats->member_summary();
use iRacingPHP\iRacing;
$iracing = new iRacing('[email protected]', 'iRacingPassword');
$standings = $iracing->league->season_standings(12345, 54321, [
'car_id' => 123
]);
$iracing->api->rateLimits->limit; // The current total rate limit
$iracing->api->rateLimits->remaining; // How much of the rate limit you have remaining
$iracing->api->rateLimits->reset; // When the rate limit will reset in epoch timestamp
$iracing = new iRacing('[email protected]', 'iRacingPassword', '/path/to/cookies');
composer
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.