PHP code example of starcitizentools / apiunto

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

    

starcitizentools / apiunto example snippets


wfLoadExtension( 'Apiunto' );

$wgApiuntoSources = [
    'StarCitizenWikiAPI' => [
        'baseUrl' => 'https://api.star-citizen.wiki/api/',
        'token' => '', // optional
        'timeout' => 5, // optional, default 5
        'cacheDuration' => 3600, // optional, default 86400
        'followRedirects' => false, // optional, default false
    ],
];
sh
php maintenance/run.php extensions/Apiunto/maintenance/purgeCache.php