PHP code example of xenokore / osrs-stats-generator
1. Go to this page and download the library: Download xenokore/osrs-stats-generator 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/ */
// Either set skills using (array)[(int)<current_lvl>, (int)<max_lvl>] or (int)<level>.
// Skills are defaulted to their lowest lvl (10 for hitpoints and 1 for others) and are not skills);
// Set image headers:
\header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
\header('Last-Modified: ' . \gmdate("D, d M Y H:i:s") . ' GMT');
\header('Cache-Control: no-store, no-cache, must-revalidate');
\header('Cache-Control: post-check=0, pre-check=0', false);
\header('Pragma: no-cache');
\header('Content-type: image/png');
// Output image
echo $img_gen->generate();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.