PHPackages                             smith197/steamauthentication - 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. smith197/steamauthentication

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

smith197/steamauthentication
============================

SteamAuthentication is a basic set of PHP files that enable users to login using their steam account to view protected content on your website. it creates a session using their steamid as the sessionID and checks for the session when a user visits the page. It also includes a file which allows you to use their profile information such as their avatar and online status.

v4.0(8y ago)448545138[24 issues](https://github.com/SmItH197/SteamAuthentication/issues)[8 PRs](https://github.com/SmItH197/SteamAuthentication/pulls)MITPHP

Since Apr 6Pushed 2y ago42 watchersCompare

[ Source](https://github.com/SmItH197/SteamAuthentication)[ Packagist](https://packagist.org/packages/smith197/steamauthentication)[ Docs](https://github.com/SmItH197/SteamAuthentication)[ RSS](/packages/smith197-steamauthentication/feed)WikiDiscussions master Synced today

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

SteamAuthentication
===================

[](#steamauthentication)

SteamAuthentication is a basic set of PHP files that enable users to login using their steam account to view protected content on your website. it creates a session using their steamid as the sessionID and checks for the session when a user visits the page. It also includes a file which allows you to use their profile information such as their avatar and online status.

See a demo at

Gambling Sites
--------------

[](#gambling-sites)

I nor Steam condone the use of this library for the purpose of gambling sites. Any sites that use this library for this purpose violates their API agreement and will receive notices from Steam to cease operations.

Read more here:

By downloading this library you agree that you will not use it for any gambling or illegal activity.

Issues
------

[](#issues)

For Issues relating directly to this SteamAuthentication Library feel free to create a Github Issue.

**For any general PHP or SQL problems please use [stackoverflow](http://stackoverflow.com/) or similar, else we will generally close these straight away if created here, thanks!**

Download
--------

[](#download)

Please note the main repository is constantly being updated so may contain bugs and other bleeding edge risks. For a stable download please visit the releases page:

Foreword
--------

[](#foreword)

Thanks goes to:

- JTX for the original steam openid script ()
- The LightopenID library ()

**Using MySQL?** Don't forget to sanitise your inputs!

To Install
----------

[](#to-install)

Upload the `steamauth` folder.

Open up `SteamConfig.php`

- change `domainname` to your domain name.
- change `apikey` to your API-Key from

Now in the page that you would like to use the steamauth library, add the following at the top:

```

```

And where you want the protected content to be:

```
