Skip to content

aykyiv/SteamAuth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SteamAuth

Example sign in through Steam in PHP

Features

  • Callbacks for login, logout, and login failure
  • Easy login
  • POST Logout

Requires

  • PHP >= 5.4

Smple example

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 . "<br/>";
	echo "<form method=\"POST\"><input type=\"submit\" name=\"logout\" value=\"Logout\" /></form>";

}else{
	echo "<a href=\"" . $auth->GetLoginURL() . "\"><img src=\"assets/sits_large_noborder.png\" alt=\"Sign in through Steam\" /></a>";
}

About

Example sign in through steam in PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%