Download the PHP package squegtech/steam-api without Composer

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

Steam API Wrapper

PHPUnit

A PHP wrapper for the Steam API. Updated and maintained for the latest versions of PHP and Guzzle.

This package replaces https://github.com/DaMitchell/steam-api-php which has been abandoned.

All existing commands are based on this documentation: https://steamapi.xpaw.me/.

Installation

Install the latest version using Composer by running composer require squegtech/steam-api

Usage

Configuration

Two parameters can be passed to the Configuration object:

As shown above you can set the Steam API key by passing it into the Configuration constructor:

Command

Commands are the classes that describe each endpoint. Each command implements SquegTech\Steam\Command\CommandInterface and has methods that will give the runners its interface, method, version, HTTP method and any parameters the endpoint requires.

The majority of commands are for GET endpoints. The POST endpoints are not fully implemented so please submit PRs for those you'd like to add.

Runners

Runners are simple objects that implement SquegTech\Steam\Runner\RunnerInterface. This interface has 3 methods with the most important being run. The other 2 are for setting the config object.

The run method has 2 arguments, $command and $result. $command is the endpoint you request on and $result is the result of the previous runner. This means that the $result of the first runner attached will be null.

Docker

This project comes with a Docker image and Docker Compose environment ready to run. Make sure to have both installed and start it with docker-compose up -d.

Once the Docker environment has started its command line can be accessed with docker-compose exec squegtech-steam-api bash.

Tests

Run the tests from the project root with docker-compose exec squegtech-steam-api vendor/phpunit/phpunit/phpunit outside of the Docker environment or vendor/phpunit/phpunit/phpunit inside of its bash shell.


All versions of steam-api with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.4
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 squegtech/steam-api contains the following files

Loading the files please wait ....