Download the PHP package relisoft/php-steam-user-library without Composer
On this page you can find all versions of the php package relisoft/php-steam-user-library. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download relisoft/php-steam-user-library
More information about relisoft/php-steam-user-library
Files in relisoft/php-steam-user-library
Package php-steam-user-library
Short Description Steam PHP library for getting data from API
License MIT
Informations about the package php-steam-user-library
PHPSteam-User-library
This library may help someone who want to use steam API and use it to fetch user data. With few lines of code you can fetch everything about user.
Install:
composer require relisoft/php-steam-user-library
CONTENT:
- user summary
- friends
- game stats
- cache results
- recently played games
- inventory (with item details)
- login via steam
TODO:
- achievement
- trade support
How to use it?
HomepagePresenter
But what we do if we need cache results?
We will use new functions and we will load full user profile and system automaticly cache it. It's cache function call so if some result will be different it will automaticly reload data.
Dump:
Getting / Setting data
Every variable did you see above have get and set function within you can set every variable and get it too.
Persona state
Persona state is one class with you can translate value from API to english language or edit to html return value.
Login
Login button:
For this purpose i created Button class with two static function whitch will return source link to img.
Login function
For this i created class Login whitch use $session to store user data. You have to add your source of $session or use default $_SESSION. I did this because i am using nette/http in my all project with better session api.
Create instance
Usage
Login states:
Depency:
- nette/utils
- nette/neon
- nette/caching
- PHP 5.4+
All versions of php-steam-user-library with dependencies
nette/caching Version ^2.4
nette/neon Version ^2.4
nette/sandbox Version ^2.4