Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/Jessecar96/SteamAuth
- Owner: Jessecar96
- License: mit
- Created: 2014-03-29T03:14:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-02T06:20:57.000Z (almost 9 years ago)
- Last Synced: 2024-04-24T18:26:17.578Z (7 months ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 47
- Watchers: 11
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 LogoutRequires
--------
* PHP >= 5.4Simple 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() . "\">";
}
```