Skip to content

drago-ex/project

Repository files navigation

Drago Project

Basis for new modules projects on Drago Extension

PHP version Coding Style CodeFactor

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

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

Useful tools that come in handy during development

About

💡 Basis for new modules projects on Drago Extension.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published