drago-ex / project
The basis for new projects on Drago Extension.
Installs: 75
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/drago-ex/project
Requires
- php: >=8.3 <9
- drago-ex/bootstrap: ^1.0
- drago-ex/project-docker: ^1.0
- drago-ex/project-front: ^1.0
- drago-ex/translator: ^2.0.0
- latte/latte: ^3.1
- nette/assets: ^1.0
- nette/robot-loader: ^4.1
- tracy/tracy: ^2.11
Requires (Dev)
- phpstan/phpstan-nette: ^1.2.9
README
Basis for new modules projects on Drago Extension
Requirements
- PHP >= 8.3
- Nette Framework
- Composer
- Docker
- Node.js
- Bootstrap
- Naja
Installation
composer create-project drago-ex/project
Basic information
Basic package for applications where the basis for Bootstrap, Vite, Docker, Naja is already prepared.
You can find all commands in package.json like running Docker or Vite.
Basic Naja scripts
-
ErrorsExtension – Handles Naja AJAX errors by displaying user-friendly alert messages based on HTTP status codes. Shows a dismissible Bootstrap alert in the page element with ID
snippet--message. -
HyperlinkDisable – Temporarily disables links with the data-link-disable attribute during Naja requests to prevent multiple clicks. Re-enables the links once the request is complete.
-
SpinnerExtension – Displays a full-page spinner during active Naja AJAX requests. Shows the spinner when a request starts and hides it once all requests are complete.
We can further expand the package with other basic settings
- https://github.com/drago-ex/project-docker
- https://github.com/drago-ex/project-db
- https://github.com/drago-ex/project-user
- https://github.com/drago-ex/project-auth
Running PHP scripts locally with Docker
If you are using Docker for local development, all PHP scripts should be executed inside the PHP container.
docker compose exec server php path/to/script