PHP code example of nhanaz / libregrsp

1. Go to this page and download the library: Download nhanaz/libregrsp library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nhanaz / libregrsp example snippets


use NhanAZ\libRegRsp\libRegRsp;
use pocketmine\plugin\PluginBase;

final class MyPlugin extends PluginBase{
    protected function onEnable() : void{
        libRegRsp::compileAndRegister($this);
    }

    protected function onDisable() : void{
        libRegRsp::unregister($this);
    }
}