xpaw / php-source-query-class
PHP库,用于根据“Source Engine Query”协议查询和发送RCON命令到服务器
4.0.0
2024-08-04 08:10 UTC
Requires
- php: >=8.1
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.3
- vimeo/psalm: ^5.15
README
此类用于查询使用Source查询协议的游戏服务器,这包括所有Source游戏和实现Steamworks的所有游戏。
该类还允许您使用RCON查询服务器,尽管这仅适用于半条命1和Source引擎游戏。
Minecraft 也使用Source RCON协议,这意味着您可以在引擎设置为Source引擎时使用此类向您的Minecraft服务器发送命令。
⚠️ 如果这不适合您,请不要发送给我电子邮件,我不会帮助您。
需求
协议规范
- https://developer.valvesoftware.com/wiki/Server_queries
- https://developer.valvesoftware.com/wiki/Source_RCON_Protocol
支持的游戏
如果您知道支持Source查询和/或RCON协议的其他游戏,请打开一个pull request。
如何判断游戏是否支持Source查询协议?
将您的服务器添加到Steam服务器浏览器的收藏夹中,如果Steam可以显示有关您服务器的信息,则表示协议受支持。
函数
请参阅示例文件夹以了解如何操作。
许可证
PHP Source Query
Copyright (C) 2012-2015 Pavel Djundik
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA