Skip to content

racine-p-a/steam_roulette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

steam_roulette

A live version of this application is hosted on my website. You can test it here if you want.

Presentation

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.

Installation

Your steam API key

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.

As a test

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.

Imported in another project

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>';

Use

The application appears like this :

Steam roulette home

Place your steam id in the field, then click on « Send ».

Steam roulette result

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

License Apache 2.0

Releases

No releases published

Packages

No packages published

Languages