Skip to content

marko-php/marko-admin-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marko/admin-panel

Server-rendered admin panel UI — provides login, dashboard, and permission-filtered sidebar navigation out of the box.

Installation

composer require marko/admin-panel

Quick Example

use Marko\AdminPanel\Menu\AdminMenuBuilderInterface;
use Marko\AdminAuth\Entity\AdminUserInterface;

class LayoutHelper
{
    public function __construct(
        private readonly AdminMenuBuilderInterface $adminMenuBuilder,
    ) {}

    public function getSidebar(
        AdminUserInterface $user,
        string $currentPath,
    ): array {
        return $this->adminMenuBuilder->build($user, $currentPath);
    }
}

Documentation

Full usage, API reference, and examples: marko/admin-panel

About

[READ-ONLY] Admin panel UI for Marko Framework. Issues and PRs at https://github.com/marko-php/marko

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors