PHPackages                             snipedragon/steamlink - 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. snipedragon/steamlink

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

snipedragon/steamlink
=====================

Provides authentication through Steam's OpenID and returns an object for the authenticated user.

1.0.2(7y ago)070MITPHPPHP &gt;=5.6.0

Since May 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/SnipeDragon/steamlink)[ Packagist](https://packagist.org/packages/snipedragon/steamlink)[ RSS](/packages/snipedragon-steamlink/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

SteamLink
=========

[](#steamlink)

[![GitHub release](https://camo.githubusercontent.com/dfa11d110d9ebc5ac861f2cb6da414004397a1e425b9f1aefb81dd657f0706b9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736e697065647261676f6e2f737465616d6c696e6b2e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/snipedragon/steamlink)[![PHP from Packagist](https://camo.githubusercontent.com/5b06576400c99ac0f64f5879e024834dd343cb8aa18e3d879f9d80d93f51a3c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736e697065647261676f6e2f737465616d6c696e6b2e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/snipedragon/steamlink)[![GitHub license](https://camo.githubusercontent.com/71e3b23c0c8c96aea706b997449b45d71e1b1f3b9c0953a81b965c32ee759a6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f736e697065647261676f6e2f737465616d6c696e6b2e7376673f7374796c653d706c6173746963)](https://github.com/SnipeDragon/steamlink/blob/master/LICENSE)[![Packagist](https://camo.githubusercontent.com/50b3a621f4efd0dd1821d125829d430e8600595f53f65ff6922227dfdd65da93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736e697065647261676f6e2f737465616d6c696e6b2e7376673f7374796c653d706c6173746963)](https://packagist.org/packages/snipedragon/steamlink)[![GitHub issues](https://camo.githubusercontent.com/ee9c48abf1ca24bb8995c5c23a3ec7bbc31a8730039d25edf245edea9c002a0a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f736e697065647261676f6e2f737465616d6c696e6b2e7376673f7374796c653d706c6173746963)](https://github.com/snipedragon/steamlink/issues)

Provides authentication through Steam's OpenID and returns an object for the authenticated user.

I could not find a solution that met my needs, so I made my own, the goals I set for myself are as follows:

1. Generate a Login Button/URL using Steam's provided login button graphics.
2. Begin a session (optional) and return a user object on login.
3. Have the ability to refresh a user object by providing a steamid.

Getting Started - Composer
--------------------------

[](#getting-started---composer)

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

```
"snipedragon/steamlink": "1.*"
```

After that, run `composer install` to install the package.

#### OR

[](#or)

```
composer require snipedragon/steamlink:1.*
```

Example
-------

[](#example)

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

$options = array(
    'apiKey' => 'YOUR-API-KEY-HERE', // Steam API KEY
    'domainName' => 'https://your-site.net', // Shown on the Steam Login page to your users.
    'loginRedirect' => 'https://your-site.net/index.php?page=SteamLink&action=Login', // Returns user to this page on login.
    'logoutRedirect' => 'https://your-site.net/index.php?page=SteamLink&action=Logout', // Returns user to this page on logout.
    'startSession' => false //true to start session, false to only validate and return a steam user object.
);

$steamlink = new SnipeDragon\SteamLink($options);

echo "Click on the following button to login and authenticate yourself through Steam:";
echo $steamlink->loginButton("rectangle"); //Can be "rectangle" or "square".
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~2 days

Total

3

Last Release

2918d ago

### Community

Maintainers

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

---

Top Contributors

[![SnipeDragon](https://avatars.githubusercontent.com/u/6583872?v=4)](https://github.com/SnipeDragon "SnipeDragon (5 commits)")

---

Tags

steamsteam loginsteamlogin

### Embed Badge

![Health badge](/badges/snipedragon-steamlink/health.svg)

```
[![Health](https://phpackages.com/badges/snipedragon-steamlink/health.svg)](https://phpackages.com/packages/snipedragon-steamlink)
```

###  Alternatives

[invisnik/laravel-steam-auth

Laravel Steam Auth

171160.6k1](/packages/invisnik-laravel-steam-auth)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[socialiteproviders/steam

Steam OpenID Provider for Laravel Socialite

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

A correct and simple implementation of OpenID authentication for Steam

5322.3k](/packages/xpaw-steam-openid)[vikas5914/steam-auth

A simple PHP Steam login and User Detail package

202.2k](/packages/vikas5914-steam-auth)[truckersmp/steam-socialite

Laravel Socialite provider for Steam OpenID.

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

PHPackages © 2026

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