Download the PHP package smith197/steamauthentication without Composer

On this page you can find all versions of the php package smith197/steamauthentication. 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 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 https://bensmith.in/steam/

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: http://store.steampowered.com/news/22883/

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

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 or similar, else we will generally close these straight away if created here, thanks!

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: https://github.com/SmItH197/SteamAuthentication/releases

Foreword

Thanks goes to:

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

To Install

Upload the steamauth folder.

Open up SteamConfig.php

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:

By default, the logout & login buttons reload the current page, this can be changed in the SteamConfig file.

Be aware that naming a file in your webpage root like any file in the steamauth folder will break SteamAuth.

Choosing a login button style

by default loginbutton(); will display image

You can choose the style of the login button by specifying a variable like the following:

loginbutton("rectangle");

image

loginbutton(); -OR- loginbutton("square");

image

Using Profile Variables

I have created a userInfo.php file which creates an array of ready to use variables that includes profile information of the steam user that has logged in:

Please note that some of these variables may be unavailable for some users as it depends on their privacy settings.

Update User Information

To refresh a user's Steam profile data use: html: <a href="?update">update</a> - recommended -OR- php: $_GET['update']=true; - this must be set before require 'steamauth/steamauth.php';

Automatically refresh Steam profile data if older than specified time when they next visit your site

change line 67 of steamauth.php From:

To:


For more help on laying out the document or using the $steamprofile variable see the example.php or the demo.php file!


All versions of steamauthentication with dependencies

PHP Build Version
Package Version
No informations.
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 smith197/steamauthentication contains the following files

Loading the files please wait ....