PHPackages                             vikas5914/steam-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. vikas5914/steam-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

vikas5914/steam-auth
====================

A simple PHP Steam login and User Detail package

v1.0.4(1y ago)192.2k12[1 issues](https://github.com/vikas5914/steam-auth/issues)[1 PRs](https://github.com/vikas5914/steam-auth/pulls)MITPHPPHP &gt;=5.4.0

Since Jun 10Pushed 1y ago3 watchersCompare

[ Source](https://github.com/vikas5914/steam-auth)[ Packagist](https://packagist.org/packages/vikas5914/steam-auth)[ RSS](/packages/vikas5914-steam-auth/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (3)DependenciesVersions (7)Used By (0)

Steam authentication and User Details
=====================================

[](#steam-authentication-and-user-details)

[![Latest Stable Version](https://camo.githubusercontent.com/61d15b82df69b3acbc00e2b550ce5f843969dbb593c040216a23c10f1531d5a4/68747470733a2f2f706f7365722e707567782e6f72672f76696b6173353931342f737465616d2d617574682f762f737461626c65)](https://packagist.org/packages/vikas5914/steam-auth) [![Total Downloads](https://camo.githubusercontent.com/02cfe483bba81cc35e84f2973838165699247d2916f05cffc1d2f9e1c6fd7462/68747470733a2f2f706f7365722e707567782e6f72672f76696b6173353931342f737465616d2d617574682f646f776e6c6f616473)](https://packagist.org/packages/vikas5914/steam-auth) [![License](https://camo.githubusercontent.com/93ce45a6707fb06d2a791042d9dd74533aaa04994e3579127130003e80a5baea/68747470733a2f2f706f7365722e707567782e6f72672f76696b6173353931342f737465616d2d617574682f6c6963656e7365)](https://packagist.org/packages/vikas5914/steam-auth) [![GitHub issues](https://camo.githubusercontent.com/d31da1de34b94fb7e1dbfb725c3d881dcd992258338054d75dc22ab5bcf09307/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f76696b6173353931342f737465616d2d617574682e737667)](https://github.com/vikas5914/steam-auth/issues) [![Packagist](https://camo.githubusercontent.com/244a30e85739bed5fee3e9b996399c0ab772db4eb57799bd4265aeff7c67b721/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f76696b6173353931342f737465616d2d617574682e737667)](https://packagist.org/packages/vikas5914/steam-auth)

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

[](#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

[](#or)

```
composer require vikas5914/steam-auth:1.*
```

Usage example
-------------

[](#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 "Logout";
} else {
    echo "Login";
}
```

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

[](#planned)

1. Test Case
2. Better ReadMe

Legal stuff
-----------

[](#legal-stuff)

If you choose to use the steam web-api you need to follow the Steam Web API Terms of Use found at

The marked code is taken from Syntax\_Error's "Ultra Simple Steam-Login" Class found at

[![forthebadge](https://camo.githubusercontent.com/748965314661747577f2573bf0f5f0fe7b3b7a2d859cafa2326712fa83a7bf3d/687474703a2f2f666f7274686562616467652e636f6d2f696d616765732f6261646765732f796f752d6469646e742d61736b2d666f722d746869732e737667)](http://forthebadge.com)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~700 days

Total

5

Last Release

503d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e21a281d67af9f544a915b32e4d92c7b2143fbcc6da46e84e8e15e304632cad4?d=identicon)[vikas5914](/maintainers/vikas5914)

---

Top Contributors

[![vikas5914](https://avatars.githubusercontent.com/u/7912297?v=4)](https://github.com/vikas5914 "vikas5914 (7 commits)")[![bladuk](https://avatars.githubusercontent.com/u/68610520?v=4)](https://github.com/bladuk "bladuk (1 commits)")[![linkjay](https://avatars.githubusercontent.com/u/5216518?v=4)](https://github.com/linkjay "linkjay (1 commits)")

---

Tags

composerloginphpsteamsteam-apisteam-authsteam-authenticationsteam-clientsteam-loginsteambotsteamsteam authsteam loginsteam-user

### Embed Badge

![Health badge](/badges/vikas5914-steam-auth/health.svg)

```
[![Health](https://phpackages.com/badges/vikas5914-steam-auth/health.svg)](https://phpackages.com/packages/vikas5914-steam-auth)
```

###  Alternatives

[invisnik/laravel-steam-auth

Laravel Steam Auth

167161.5k1](/packages/invisnik-laravel-steam-auth)[socialiteproviders/steam

Steam OpenID Provider for Laravel Socialite

21601.1k2](/packages/socialiteproviders-steam)[xpaw/steam-openid

A correct and simple implementation of OpenID authentication for Steam

5525.0k](/packages/xpaw-steam-openid)[ehesp/steam-login

A simple PHP Steam login and validation package

4420.8k](/packages/ehesp-steam-login)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

1517.7k](/packages/truckersmp-steam-socialite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
