Download the PHP package jacobfitz/steamauth without Composer

On this page you can find all versions of the php package jacobfitz/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

SteamAuth

SteamAuth allows you to implement steam sign-in within your PHP project. \ It is simple, fast, and secure...

Installation

Install with composer:

Request

To log a user in you must first make a request.

API_KEY - This is your steam developer API key, you can find it by going to https://steamcommunity.com/dev/apikey \ RETURN_URL - The URI on your website where the user will be returned to on successful login. For example if your website is example.com and you want to proccess the response on example.com/proc_login, you will only need to pass proc_login to the request constructor - Do not use full URL's!

The user will be redirected to the steam login page, once they sign in with their steam account they will be returned to the return URL specified with a response from steam.

Note: If you choose to use a steam login button you must consult and adhere to the steam brand guidelines.

Response

When the user is returned to your site after logging in with steam you will need to handle the response, an example of how this is done can be found bellow.

User

Once a request has been made, and the response has been handled you will be able to access information about the user. SteamAuth comes with a handy class to make working with the steam user easy, but if you prefer to use your own implementation you can get all the information you need from the $_SESSION['steamAuth'] variable.

Check if the user is logged in

To check if a steam user is currently logged in you can do:

Get the user

To get a currently logged-in user you can do:

Reload the user

User details are not automatically updated, meaning it may be necessary to fetch the latest information from steam. This can be done by simply doing:

Get user information

To get information about a user you can use a variety of methods. Bellow is an example of how each can be used:


All versions of steamauth with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
iignatov/lightopenid Version *
ext-json Version *
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 jacobfitz/steamauth contains the following files

Loading the files please wait ....