Download the PHP package sync667/steam-web-api2 without Composer
On this page you can find all versions of the php package sync667/steam-web-api2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package steam-web-api2
Steam Web API v.2
Version will be updated by me to new Web API.
A wrapper library that allows you to send requests to Steam Web API implemented in PHP Laravel Framework
.
This library simply takes arguments from method call and uses GuzzleHttp
to send request Steam Web API and returns the response as expected.
It requires minimum PHP 5.6
version.
Installation
You can easily install this package via Composer:
-
Add
"sync667/steam-web-api2": "2.*"
to yourcomposer.json
file. -
Type
composer update
on Terminal - Ready to use!
Usage
-
Add the following namespace to your file
- Then, you need to initialize client with your Steam Web API credentials
Note : Response format can be either json or xml.
- Once you initialize, select your API module and then call the appropriate method.
Let say we would like to get player items, then following code block will be fine for that purpose
More Info About Library
- As you may know, there are some modules of Steam Web API. These are all available in this library.
Here is the list of class names and their namespaces that you can use.
- On the other hand, some of API calls require application ids. You can use Steam Application IDs via
ApplicationIDs
class underEpigra\SteamWebApi\Constants
namespace.
List of applications and their ids provided by the library:
e.g. You can easily get TeamFortress2 ID like following
-
This library is well documented and can be reached from
docs/
directory. - For more information Visit Steam Page.