Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Jessecar96/SteamAuth

Example sign in through steam in PHP
https://github.com/Jessecar96/SteamAuth

Last synced: 3 months ago
JSON representation

Example sign in through steam in PHP

Awesome Lists containing this project

README

        

SteamAuth
=========
Sign in through Steam library for PHP.

This is only intended for basic webpages. For bigger projects use this only as an example to build your own.

Features
--------
* Callbacks for login, logout, and login failure
* Easy login
* POST Logout

Requires
--------
* PHP >= 5.4

Simple example
-----
```php
include("SteamAuth/SteamAuth.class.php");
$auth = new SteamAuth();
$auth->Init();

if(isset($_POST['logout']))
{
$auth->Logout();
}

if($auth->IsUserLoggedIn())
{
echo "Your SteamID is " . $auth->SteamID . "
";
echo "";
}
else
{
echo "GetLoginURL() . "\">\"Sign";
}
```