Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunxyw/minecraft-protocol
This package provides a simple way to communicate with the Minecraft server. 提供了与我的世界服务器进行交互的简易接口。
https://github.com/sunxyw/minecraft-protocol
helper laravel laravel-package laravel9 minecraft package php php8 protocol utils
Last synced: 22 days ago
JSON representation
This package provides a simple way to communicate with the Minecraft server. 提供了与我的世界服务器进行交互的简易接口。
- Host: GitHub
- URL: https://github.com/sunxyw/minecraft-protocol
- Owner: sunxyw
- License: mit
- Created: 2022-03-10T10:39:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T10:39:56.000Z (over 2 years ago)
- Last Synced: 2024-11-15T08:47:33.807Z (about 2 months ago)
- Topics: helper, laravel, laravel-package, laravel9, minecraft, package, php, php8, protocol, utils
- Language: PHP
- Homepage:
- Size: 158 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# MinecraftProtocol
[![Latest Version on Packagist][ico-version]][link-packagist]
[![Total Downloads][ico-downloads]][link-downloads]This package provides a simple way to communicate with the Minecraft server.
Supported driver:
* RCON (RemoteConsoleDriver)
## Installation
Via Composer
``` bash
$ composer require sunxyw/minecraft-protocol
```## Usage
If you are using Laravel, please use the `MinecraftProtocol` facade directly. You should also publish the configuration
by running `php artisan vendor:publish --provider="Sunxyw\MinecraftProtocol\MinecraftProtocolServiceProvider"`. Your
connection info can be found in `config/minecraft-protocol.php`.Otherwise, please use the specified driver class, you might want to maintain a singleton instance of it by yourself. You
will need to pass the host, port and password to the constructor.For methods, please refer to the [DriverInterface](src/Drivers/DriverInterface.php).
## Testing
``` bash
$ composer test
```## Contributing
Please see [contributing.md](CONTRIBUTING.md) for details and a todolist.
## Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [sunxyw][link-author]
- [All Contributors][link-contributors]## License
MIT. Please see the [license file](LICENSE) for more information.
[ico-version]: https://img.shields.io/packagist/v/sunxyw/minecraft-protocol.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/sunxyw/minecraft-protocol.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/sunxyw/minecraft-protocol/master.svg?style=flat-square
[ico-styleci]: https://styleci.io/repos/12345678/shield
[link-packagist]: https://packagist.org/packages/sunxyw/minecraft-protocol
[link-downloads]: https://packagist.org/packages/sunxyw/minecraft-protocol
[link-travis]: https://travis-ci.org/sunxyw/minecraft-protocol
[link-styleci]: https://styleci.io/repos/12345678
[link-author]: https://github.com/sunxyw
[link-contributors]: ../../contributors