drago-ex / project-backend
Preconfigured basic backend module for the basic Drago Project.
Package info
github.com/drago-ex/project-backend
Type:drago-tools-resource
pkg:composer/drago-ex/project-backend
Requires
- php: >=8.3 <9
- drago-ex/application: ^4.0
- drago-ex/project-front: ^3.0
- drago-ex/translator: ^4.0.1
Requires (Dev)
- drago-ex/project-tools: ^1.0
- nette/tester: ^2.5
- phpstan/phpstan-nette: ^2.0
Suggests
- drago-ex/permission: Enables generation of the backend permission provider.
Provides
None
Conflicts
None
Replaces
None
README
Preconfigured backend module for Drago Project.
Requirements
- PHP >= 8.3, < 9
- Drago Project
Installation
composer require drago-ex/project-backend
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.
Access
The module itself has no sign-in check, so /admin is open until access control is added: the
RequireLogged trait of drago-ex/project-auth in BackendPresenter,
or drago-ex/project-backend-ui, which replaces the presenter
with a signed-in administration.
Optional add-ons
The package works without them. Set them up by hand as described below when the project needs them.
Permission provider
With drago-ex/permission, the access rules from bin/create-backend-permission
are generated into the project by:
php vendor/bin/drago-commands