A live version of this application is hosted on my website. You can test it here if you want.
This project is simple : it just picks randomly one of your game in your steam library. If you don't know what to play despite your huge library, this is just for you.
First of all, you need a steam API key. Register for free on steam dev.
You must now write this key in the file named steam_api_key.
Just clone the project where a webserver can access it. If you use Apache, place it under its working directory (/var/www/html or /var/www). And then, just open the example.php page.
Clone the steam roulette somewhere in your project and import the file roulette.php.
This way :
// Import it :
require_once dirname(__FILE__) . '/path/to/roulette.php';
// Call it
try {
$mySteamRoulette = getVueRoulette();
// $mySteamRoulette contains now a string made of HTML and javascript code that you can import
// add in any of your webpages.
} catch (Exception $e) {
echo $e;
}
// As an example, you can do something like this :
echo '<!DOCTYPE html>
<html lang="en">
<head>
<title>Steam roulette</title>
</head>
<body>
<div>' . $mySteamRoulette . '</div>
</body>
</html>';
The application appears like this :
Place your steam id in the field, then click on « Send ».
If the game does not satisfies you, click on the button « Pick a game » until you find the perfect one :=).
Once you have your game, just click on the button Launch game. It will launch the game automatically if you have it or will download it.
Enjoy :D
License Apache 2.0