ivanpepelko/steamkit

此软件包已被废弃且不再维护。未建议替换软件包。

dev-master 2016-05-30 19:39 UTC

This package is auto-updated.

Last update: 2022-02-01 12:57:42 UTC


README

使用composer安装: composer require ivanpepelko/steamkit

设置您的配置文件(见配置部分)并运行: vendor/bin/steamkit generate-api

配置

在项目的根目录下创建config.yml文件,或向控制台实用程序传递--config参数以从自定义配置文件读取。目前只支持yaml/yml格式。

示例配置

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

控制台实用程序

要生成Steam Web API类: php vendor/bin/steamkit generate-api

参数

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.

示例(针对Symfony 3用户,如果值在默认配置文件中提供)

`php vendor/bin/generate-api generate --config app/config/config.yml`