1. Go to this page and download the library: Download nickjbedford/hooks 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/ */
nickjbedford / hooks example snippets
$menu = [
'Plugins' => [
new MenuItem('Plugin Manager', '/plugins/index')
]
];
$menuItems = hook_filter('main_menu', $menu);
// Add menu items to UI...