Download the PHP package drago-ex/project-backend-ui without Composer
On this page you can find all versions of the php package drago-ex/project-backend-ui. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drago-ex/project-backend-ui
More information about drago-ex/project-backend-ui
Files in drago-ex/project-backend-ui
Package project-backend-ui
Short Description Integration of a basic template for administration.
License
Informations about the package project-backend-ui
Drago Project Backend UI
Integration of a basic template for administration.
Requirements
- PHP >= 8.3
- Nette Framework
- Composer
- Bootstrap
- Naja
- Node.js
- Drago Project core packages
Installation
Project files
File copying is handled automatically by drago-ex/project-installer,
which must be installed in your project. Without it, copy the files manually according to the copy section
in this package's composer.json. To skip this package, set "skip": true under
extra.drago-project.packages.<package-name> in your root composer.json.
⚠️ This package uses the
replacesection, which means some files will be overwritten if they already exist. Avoid manual edits to those files — use theskipoption if you need to manage them yourself.
Install npm
This package is based on Dashboard Skeleton.
Use admin-theme.js
Creating a Menu
The menu is typically created in a base presenter for the administration (e.g., BackendPresenter).
Then pass it to the template in beforeRender:
Menu Composition Guide
-
addSection(string $title) - (Optional) Creates a new group of items with a visible header (title). Use this when you want to visually separate different parts of the menu. If skipped, items will be grouped together without a title.
-
addItem(string $title, string $link) - Adds a primary link to the sidebar. If you only use this method, it renders as a direct link. If followed by
addSubItem, it automatically becomes a dropdown toggle for the submenu. -
setIcon(string $icon) - Attaches a FontAwesome icon (e.g.,
fa-solid fa-user) to the last added primary item. - addSubItem(string $title, string $link, ?array $allow = null) - Adds a child link to the last added primary item, automatically turning it into a submenu.
Integration with project-permission
If you are using the project-permission package, the menu automatically handles visibility based on user privileges.
-
setAllowAny(resource, ...privileges) - The main item is displayed if the user has at least one of the specified privileges for the given resource.
- addSubItem(..., [resource, privilege]) - The sub-item is displayed only if the user has the exact privilege for the given resource.
All versions of project-backend-ui with dependencies
drago-ex/project-user Version ^2.0
drago-ex/project-backend Version ^2.0
drago-ex/project-auth Version ^2.0