1. Go to this page and download the library: Download damarbob/starcore 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/ */
// Returns the value of 'header' from 'Hooks/Frontend.php'
$headerHook = hook('Frontend.header');
use StarCore\Star\HyperHook;
return [
'header' => new HyperHook('header', 'Header Hook', 'This hook is used to display the header.'),
'footer' => new HyperHook('footer', 'Footer Hook', 'This hook is used to display the footer.'),
];