Download the PHP package sgtaziz/steamauth without Composer

On this page you can find all versions of the php package sgtaziz/steamauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package steamauth

Installation

  1. Edit your composer.json to require "sgtaziz/steamauth": "~1.2".
  2. Run composer update to download and install the package.
  3. Copy vendor/sgtaziz/steamauth/src/config/steamauth.php to config/steamauth.php.
  4. Edit steamauth.php to include your Steam API key.
  5. Open up config/app.php and add 'sgtaziz\SteamAuth\SteamAuthServiceProvider' as a service provider. You must also add 'SteamAuth' => 'sgtaziz\SteamAuth\Facades\SteamAuth' to aliases.

Documentation

Currently, the only real usable function is SteamAuth::Auth(). Example:

SteamAuth::Auth() will automatically redirect the user to Steam's website to login. Once authenticated, it will return to the previous page and $user will be a valid variable if Steam was used successfully to authenticate the user. SteamAuth::Auth() will also return an associative array with these values:

Variables of $user

Public Variables

  1. steamid - 64bit SteamID of the user
  2. communityvisibilitystate - 1 = Private | 2 = Friends Only | 3 = Public
  3. profilestate - When set to one, means that the user has setup their Steam Community profile
  4. personaname - The user's Steam alias
  5. lastlogoff - Unix timestamp of when the user was last online
  6. commentpermission - When available, it means that anyone can comment on the profile
  7. profileurl - The URL of the user's profile
  8. avatar - A small version of the user's avatar
  9. avatarmedium - A medium version of the user's avatar
  10. avatarfull - The highest quality version of the user's avatar
  11. personastate - 0 = Offline | 1 = Online | 2 = Busy | 3 = Away | 4 = Snooze | 5 = Looking to Trade | 6 = Looking to Play

Private Variables

  1. realname - The user's "real name" set on their profile
  2. primaryclanid - The user's primary group
  3. timecreated - Unix timestamp of the account's creation date
  4. gameid - If the user is in a game, the game ID of the game he is currently in
  5. gameserverip - When possible, the IP of the server the user is currently in
  6. gameextrainfo - The name of the game the user is currently playing

See this for more info.

Note

This is not meant to be used as a way to authenticate users on your website, but simply a way to get their steam information. Once you do that, you may store it in your own database and use that plus SteamAuth to authenticate users.


All versions of steamauth with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
laravel/framework Version >=6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sgtaziz/steamauth contains the following files

Loading the files please wait ....