2017 © Pedro Peláez
 

library steamkit

image

ivanpepelko/steamkit

  • Monday, May 30, 2016
  • by ivanpepelko
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Installation

Install with composer: composer require ivanpepelko/steamkit, (*1)

Setup your config file(see Config section) and run: vendor/bin/steamkit generate-api, (*2)

Config

Create config.yml file in root directory of your project or pass --config parameter to console utility to read from custom config file. Only yaml/yml format is supported currently., (*3)

Sample Config

#config resides in steamkit section
steamkit:
    # your Steam Web API key
    apikey: ~ 
    # response from steam api is associative array or objects
    assoc: true

Console utility

To generate Steam Web API classes: php vendor/bin/steamkit generate-api, (*4)

Parameters

Short   Long        Description
-c      --config    Custom config file. Default config file is config.yml in the root directory of project.
-f      --fix       Run php-cs-fixer on generated files after generation.

Example for Symfony 3 users (if values are provided in default config file): php vendor/bin/generate-api generate --config app/config/config.yml, (*5)

The Versions