Download the PHP package aina/dagophp without Composer

On this page you can find all versions of the php package aina/dagophp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dagophp

DagoPHP

Framework PHP minimaliste, sans dépendance lourde — routing, MVC, ORM basique, migrations, envoi d'email en SMTP brut, le tout dans quelques centaines de lignes lisibles.

Prérequis

Installation

Nouveau projet (une fois publié sur Packagist) :

Depuis ce dépôt en local :

Dans les deux cas, config/*.yaml.example est automatiquement copié vers config/*.yaml (script post-create-project-cmd). Si tu es en composer install local et que ces fichiers n'existent pas encore, copie-les à la main :

Les fichiers config/*.yaml réels sont ignorés par git (.gitignore) — seuls les .example sont versionnés, pour ne jamais commiter de vrais identifiants.

Configure ensuite tes accès dans config/database.yaml et config/mail.yaml, puis lance les migrations :

Démarre le serveur de développement :

Structure du projet

Routing

routes/web.php ne contient plus de routes lui-même : il boucle sur tous les .php du dossier routes/ et les charge. Pour ajouter un groupe de routes, crée un nouveau fichier (ou utilise php dago makeroute nom) :

Contrôleurs

Vues

$view->e() échappe le HTML (protection XSS). $view->layout('nom') enrobe la vue dans resources/views/nom.php, dont le contenu est disponible via $content.

Modèles

Validation

Email (SMTP brut, sans librairie)

Configuration dans config/mail.yaml (host, port, encryption, username, password, from, from_name).

Commandes CLI (php dago ...)

Commande Description
php dago migrate Exécute toutes les migrations de database/migrations/
php dago makemigrations nom Crée une nouvelle migration horodatée
php dago makemodel Nom Crée app/Models/Nom.php
php dago makecontroller Nom Crée app/Controllers/NomController.php
php dago makeroute nom Crée routes/nom.php
php dago serve / php dago serve -p 8080 Démarre le serveur de dev (port 8000 par défaut)

Middlewares


All versions of dagophp with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-pdo Version *
symfony/yaml Version ^8.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aina/dagophp contains the following files

Loading the files please wait ...