https://github.com/alexevladgabriel/php-webrcon
🐘 PHP library to send & receive commands from rust server based on websocket client.
https://github.com/alexevladgabriel/php-webrcon
php rcon webrcon
Last synced: 7 months ago
JSON representation
🐘 PHP library to send & receive commands from rust server based on websocket client.
- Host: GitHub
- URL: https://github.com/alexevladgabriel/php-webrcon
- Owner: alexevladgabriel
- License: gpl-3.0
- Created: 2021-05-01T11:48:07.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T09:06:43.000Z (almost 3 years ago)
- Last Synced: 2025-09-28T03:35:25.422Z (10 months ago)
- Topics: php, rcon, webrcon
- Language: PHP
- Homepage:
- Size: 64.5 KB
- Stars: 5
- Watchers: 1
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# WebRcon
[](https://packagist.org/packages/scai/php-webrcon)
[](https://github.com/alexevladgabriel/php-webrcon/actions/workflows/run-tests.yml)
[](https://packagist.org/packages/scai/php-webrcon)
PHP library to send & receive commands from rust server based on websocket client.
## Installation
You can install the package via composer:
```bash
composer require scai/php-webrcon
```
## Usage
```php
$rcon = new Scai\WebRcon\WebRconClass();
$rcon->connect('IP', RCON_PORT, 'RCON_PASSWORD');
$rcon->send('serverinfo');
$data = $rcon->receive();
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Alexe Vlad](https://github.com/alexevladgabriel)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.