drago-ex / project-preset
Overlay preset that turns an installed Drago Project into a backend-ready stack.
Package info
github.com/drago-ex/project-preset
Language:Latte
Type:drago-tools-resource
pkg:composer/drago-ex/project-preset
Requires
- php: >=8.3 <9
- drago-ex/project-backend: ^1.0
- drago-ex/project-backend-ui: ^1.0
- drago-ex/project-blog: ^2.0
- drago-ex/project-docker: ^1.0
- drago-ex/project-docker-db: ^1.1
- drago-ex/project-front: ^3.0
- drago-ex/project-gallery: ^1.0
- drago-ex/project-settings: ^2.0
- drago-ex/project-static-page: ^2.0
- drago-ex/translator: ^4.0.1
Requires (Dev)
- phpstan/phpstan-nette: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Overlay preset that turns an installed Drago Project into a complete backend-ready stack.
Requirements
- PHP >= 8.3, < 9
- Drago Project
- Docker
Installation
composer require drago-ex/project-preset
Files copied into the project
The files are copied into the project by drago-ex/project-tools,
as set in extra.drago-tools of this package's composer.json.
Included packages
- Docker Setup
- Database Layer
- Authentication
- Backend Admin
- Backend UI
- Application Settings
- Blog
- Static Pages
- Gallery
Front
The preset replaces the plain front layout of project-front with a Bootstrap one: a navbar with the blog and the static pages marked "Show in the menu" (the logo leads to the home page), and the signed-in user's menu (account, administration, theme, sign out) or a sign-in button. The home page shows the latest articles of the blog.
Optional add-ons
The package works without them. Set them up by hand as described below when the project needs them.
Permissions
The preset contains no permissions. drago-ex/project-preset-permission adds them: the administration menu by privileges, write buttons and roles from the database.
composer require drago-ex/project-preset-permission