marioz2002/fm-steamcondenser-bundle
Composer 安装命令:
composer require marioz2002/fm-steamcondenser-bundle
包简介
Symfony SteamcondenserBundle
README 文档
README
Add some Steam[http://steampowered.com] to your Symfony 2 project!
This bundle allows you to query game servers, getting information about players/Steam users, getting server information, such as current player list and etc. Bundle depends on Steam Condenser library by Sebastian Staudt
This Bundle status is WIP (work in progress)
Installation
To install this bundle, you'll need both the Steam Condenser and this bundle.
Step 1: Installation
Using Composer, just add the following configuration to your composer.json:
{
"require": {
"helios-ag/fm-steamcondenser-bundle": "dev-master"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update helios-ag/fm-steamcondenser-bundle
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new FM\SteamcondenserBundle\FMSteamcondenserBundle(), ); }
Configuration
Before using this you need to configure bundle:
fm_steamcondenser: server_list: my_server: address: 127.0.0.1 port: 27015 password: passw0rd source: true
Under server_list node, you can define multiple servers. Each server has address - an ip address of the server, and port. Password field used to set Rcon (remote console) password. Source option, defines, is server uses source based engine or not (games like Team Fortress 2, Half-Life 2, CS:S and many others Valve games, but not Half-Life 1, CS 1.6)
##Command line tools
Bundle provide some useful CLI commands, to survey servers, get information about steam users,
Rcon command
php app/console steam:rcon [server] [command]
Send rcon command to server, syntax is [server] - server alias, defined in configuration, for example "my_server" [command] - command to send
Server Info Command
php app/console steam:serverinfo [server] --ip [ip] --port [port] --showplayers
Show server information, like server name, game, list current players, ping. Arguments: [server] - server alias defined in configuration
Optional parameters: --ip and --port options can be used to define server explicitly via CLI (in this case you omit server alias) --showplayers - show current players on server
User Info Command
php app/console steam:userinfo [username/steamID]
Accept Steam ID (64 bit unique number) or Steam user name
Show username and list of available games. Also shows user current nickname and his online status.
Server List Command
php app/console steam:serverlist
Show list of defined servers via config.yml
##Services
Work in progress
##Twig Extensions
Currently available two twig extensions (actually widgets):
{{steam_server(ip,port,source)}}
Show server information. List curent players and etc. Arguments: ip - ip address server port - server port source - true or false, true if source based server, false otherwise
{{steam_user(steamID || steam name,showgames)}}
Show STEAM user information. Avatar and games. Provied link to user profile. Accept steamID or steam nickname. Parameters: showgames - boolean (true||false), specifies show list of games or no, belonged to user.
#Translations
Currently two language supported: English and Russian, feel free to contribute.
marioz2002/fm-steamcondenser-bundle 适用场景与选型建议
marioz2002/fm-steamcondenser-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 05 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「steam」 「webapi」 「steam-condenser」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 marioz2002/fm-steamcondenser-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 marioz2002/fm-steamcondenser-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 marioz2002/fm-steamcondenser-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The SDK of Rakuten Web Service
Add the resource system to symfony application
The bundle for easy using json-rpc api on your project
Hprose asynchronous client & standalone server based on swoole
Laravel Steam Auth - TruckersMP
Steam Login package for Laravel 5.5+
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 13
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-20