ninjaknights / camerautils
PocketMine-MP virion designed to assist developers in creating camera-related plugins.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ninjaknights/camerautils
Requires (Dev)
- php: ^8.1
- phpstan/phpstan: ^1.12
- pocketmine/pocketmine-mp: ^5.37.0
- sof3/pharynx: ^0.3.8
This package is auto-updated.
Last update: 2025-11-17 05:53:21 UTC
README
CameraUtils is a PocketMine-MP virion designed to help developers/users use Camera Features.
๐ Installation
Add CameraUtils to your project via Composer:
composer require ninjaknights/camerautils
๐ Basic Setup
Before using the API, you must register it in your pluginโs onLoad() or onEnable() method:
<?php use ninjaknights\CameraUtils\APIRegistry; use ninjaknights\CameraUtils\preset\PresetRegistry; class MyPlugin extends PluginBase { public function onEnable(): void { // Register CameraUtils API if(!APIRegistry::isRegistered()){ APIRegistry::register($this); } // Register default camera presets PresetRegistry::registerDefaults(); } }
๐ง Usage & Examples
Check out our detailed examples and documentation:
- ๐ Example Code: See the
examples/folder for practical implementations - ๐ Detailed Guide: USAGE.md for comprehensive documentation
๐ฎ Contributing
- Found a bug or wish to suggest some changes? Open an issue
- Want to contribute? Fork the repository and make a pull request!
๐ฌ Get Help & Connect to Us
๐ License
This project is licensed under the GPL-3.0 License - see the LICENSE file for details.