PHP code example of hypejunction / elgg-cli
1. Go to this page and download the library: Download hypejunction/elgg-cli 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/ */
hypejunction / elgg-cli example snippets
class MyCommand extends \Symfony\Component\Console\Command\Command {}
elgg_register_plugin_hook_handler('commands', 'cli', function($hook, $type, $return) {
$return[] = MyCommand::class;
return $return;
});