PHP code example of synopsie / iriss-command

1. Go to this page and download the library: Download synopsie/iriss-command 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/ */

    

synopsie / iriss-command example snippets


composer 

class CommandTest extends CommandBase {

    public function __construct($name, $description, $usage, $subCommand, $aliases) {}

    public function getCommandParameter() : array {} #Permet de définir les paramètres utilisés pas la commande.
    
    public function onRun(CommandSender $sender, array $params) : void {} #Permet de définir l'action de la commande.
}

class ParameterTest extends Parameter{
    
    //code

}