This is a fully functioning front end for Elevator written in PHP powered by Lay
PHP Version: 8.1 >
Update your composer.json to include the github repo
"repositories": [
{
"type": "vcs",
"url": "[email protected]:osaitech/elevator-php-frontend.git"
}
],The run this command on your terminal
composer require osaitech/elevator-frontend:dev-mainphp vendor/osaitech/elevator-frontend/init.php DashboardYou can swap Dashboard for another domain.
If you want to overwrite the existing folders and/or files, pass the --force tag to the code above.
To overwrite the layout files, pass the --overwrite-layout tag to the code above.
Update the body.inc file to add new menus:
$layout = \ElevatorFrontend\PillarDash::layout();
$layout::pre_blog_menu(
Menu::make(
"New Menu",
"ki-message-edit",
true,
[
"name" => "Published Articles",
"url" => "new-menu/new-url",
"title" => "This page consists of all published articles",
],
),
);
$layout::render();You can add your own menus using the pre_blog_menu and post_blog_menu methods.