All Projects → vikas5914 → steam-auth

vikas5914 / steam-auth

Licence: other
A simple PHP Steam login and User Detail package

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to steam-auth

Archisteamfarm
C# application with primary purpose of idling Steam cards from multiple accounts simultaneously.
Stars: ✭ 7,219 (+45018.75%)
Mutual labels:  steam, steambot, steam-api, steam-client
steam community market
Get item prices and volumes from the Steam Community Market using Python 3
Stars: ✭ 24 (+50%)
Mutual labels:  steam, steambot, steam-api
SteamHelper-rs
Interact with Valve's Steam network with this collection of crates.
Stars: ✭ 24 (+50%)
Mutual labels:  steam, steam-client, steam-authentication
Chat-LoggerPP
Steam Chat Logger
Stars: ✭ 13 (-18.75%)
Mutual labels:  steam, steam-api, steam-client
idle master extended
🃏 Get your Steam Trading Cards the Fast Way (Fast Mode Extension 🚀)
Stars: ✭ 1,771 (+10968.75%)
Mutual labels:  steam, steambot, steam-api
SteamAuthOOP
OpenID-Login through Steam for your website
Stars: ✭ 32 (+100%)
Mutual labels:  steam, steam-api, steam-login
SteamTradeOffersBot
SteamBot fork that provides an easy-to-use Trade Offer library and a true generic inventory interface.
Stars: ✭ 45 (+181.25%)
Mutual labels:  steam, steambot, steam-api
Hourboostr
Two programs for idling Steam game hours and trading cards
Stars: ✭ 372 (+2225%)
Mutual labels:  steam, steam-api
Steam Market
Find arbitrages on the Steam Market.
Stars: ✭ 25 (+56.25%)
Mutual labels:  steam, steam-api
Personal Influxdb
Import data from various APIs into InfluxDB
Stars: ✭ 51 (+218.75%)
Mutual labels:  steam, steam-api
Punk
⚡ Alternative cross-platform Steam client for desktop
Stars: ✭ 87 (+443.75%)
Mutual labels:  steam, steam-api
newsteamchat
Metro skin for Steam chat and friends UI.
Stars: ✭ 79 (+393.75%)
Mutual labels:  steam, steam-client
SteamCMD-AppID-List
Complete Steam AppID List
Stars: ✭ 12 (-25%)
Mutual labels:  steam, steam-api
download-steam-reviews
Download Steam reviews for any game. Available on PyPI.
Stars: ✭ 26 (+62.5%)
Mutual labels:  steam, steam-api
steam-stylegan2
Train a StyleGAN2 model on Colaboratory to generate Steam banners.
Stars: ✭ 30 (+87.5%)
Mutual labels:  steam, steam-api
Steamworks
Exposing SteamWorks functions to SourcePawn.
Stars: ✭ 70 (+337.5%)
Mutual labels:  steam, steam-api
saliengame-bot
Steam Saliens Game 2018 - Auto-play / Auto-Click Bot
Stars: ✭ 12 (-25%)
Mutual labels:  steam, steambot
Steamcmd Autoupdate Any Gameserver
Windows SteamCMD to autoupdate and install any game server steam cmd settings configurable lots of useful features. This batch script will keep your game servers automaticly updated updating intervals announce the server is shutting down for updates etc all configurable.
Stars: ✭ 77 (+381.25%)
Mutual labels:  steam, steam-api
Steamforwarder
steam_api.dll implementation for wine. Your windows games now can interact with your linux steam! (This repo mirrors https://gitlab.com/xomachine/SteamForwarder)
Stars: ✭ 190 (+1087.5%)
Mutual labels:  steam, steam-api
Sam
Steam Account Manager / Switcher
Stars: ✭ 172 (+975%)
Mutual labels:  steam, login

Steam authentication and User Details

Latest Stable Version Total Downloads License GitHub issues Packagist

This package enables you to easily log users in via Steam and get user details , using their OpenID service. However, this package does not require that you have the OpenID PHP module installed!

Installation Via Composer

Add this to your composer.json file, in the require object:

"vikas5914/steam-auth": "1.*"

After that, run composer install to install the package.

OR

composer require vikas5914/steam-auth:1.*

Usage example

require __DIR__ . '/vendor/autoload.php';

$config = array(
    'apikey' => 'xxxxxxxxxxxxxxxxx', // Steam API KEY
    'domainname' => 'http://localhost:3000', // Displayed domain in the login-screen
    'loginpage' => 'http://localhost:3000/index.php', // Returns to last page if not set
    "logoutpage" => "",
    "skipAPI" => false, // true = dont get the data from steam, just return the steamid64
);

$steam = new Vikas5914\SteamAuth($config);

if ($steam->loggedIn()) {
    echo "Hello " . $steam->personaname . "!";
    echo "<a href='" . $steam->logout() . "'>Logout</a>";
} else {
    echo "<a href='" . $steam->loginUrl() . "'>Login</a>";
}

User-Data is accessible through $steam->varName; You can find a basic list of variables in the demo file or a more advanced one in the code.

Check if the user is logged in with $steam->loggedIn(); (Will return true or false)

Planned

  1. Test Case
  2. Better ReadMe

Legal stuff

If you choose to use the steam web-api you need to follow the Steam Web API Terms of Use found at http://steamcommunity.com/dev/apiterms

The marked code is taken from Syntax_Error's "Ultra Simple Steam-Login" Class found at http://forums.steampowered.com/forums/showthread.php?t=1430511

forthebadge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].