Download the PHP package dlunire/dlcore without Composer
On this page you can find all versions of the php package dlunire/dlcore. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dlunire/dlcore
More information about dlunire/dlcore
Files in dlunire/dlcore
Package dlcore
Short Description DLCore es el núcleo funcional del framework DLUnire. Proporciona el ORM, motor de plantillas, autenticación, envío de correos y lectura avanzada de variables de entorno con tipado estático. Todo lo esencial para construir aplicaciones modernas en PHP con una arquitectura limpia y extensible
License AGPL-3.0-or-later
Homepage https://dlunire.dev/
Informations about the package dlcore
DLCore — Kernel de DLUnire / DLUnire Core Kernel
Español
Dependencia de Infraestructura
DLCore requiere DLRoute como proveedor del contexto de ejecución. Esto incluye, pero no se limita a:
- Resolución del document root
- Contexto del entorno de servidor
- Resolución base del sistema de archivos y rutas
DLCore no inicializa ni define el entorno de ejecución. Su responsabilidad es consumir dicho entorno de forma determinista, delegando esta tarea a DLRoute como capa de infraestructura.
Esta dependencia es intencional y estructural, y forma parte del diseño arquitectónico del framework. DLRoute actúa como la capa inferior que abstrae el entorno de ejecución, mientras que DLCore construye sobre dicho contexto sin duplicar responsabilidades.
English
Infrastructure Dependency
DLCore requires DLRoute as the execution context provider. This includes, but is not limited to:
- Document root resolution
- Server environment context
- Base filesystem and path resolution
DLCore does not initialize nor define the execution environment. Its responsibility is to consume that environment deterministically, delegating this role to DLRoute as the infrastructure layer.
This dependency is intentional and structural, and is part of the framework’s architectural design. DLRoute acts as the lower-level layer that abstracts the execution environment, while DLCore builds on top of that context without duplicating responsibilities.
Installation
To install dlunire/dlcore, run the following command:
Important: You must have Composer installed before installing this tool. If you don’t have it yet, visit Composer’s official website and follow the instructions.
Instalación
Para instalar dlunire/dlcore, ejecute el siguiente comando:
Importante: debe tener instalado Composer previamente. Si no lo tiene, visite el sitio oficial de Composer y siga las instrucciones.
Features / Características
- Query builder.
- Model system.
- Typed environment variable reader, which validates types such as
string,integer,boolean,email, anduuidv4, even without a traditional.envfile. - Template parser for
*.template.htmlfiles with syntax similar to Laravel Blade.
Template Syntax Comparison / Comparación con Laravel
| Feature | Laravel | DLCore |
|---|---|---|
| Base template | @extends('base') |
@base('base') |
| Template directory | /resources/ |
/resources/ |
| Template extension | .blade.php |
.template.html |
| JSON output | @json($array) |
@json($array, 'pretty') |
| Markdown support | N/A | @markdown('file') |
| Looping | @for(...) @endfor |
@for(...) @endfor |
Markdown files must be placed in
/resources/and use.mdextensions, but do not include the extension in@markdown().
Usage / Uso
Environment Variables / Variables de entorno
Create a .env.type file with typed variables:
To send emails:
Google reCAPTCHA keys:
For syntax highlighting, install DL Typed Environment extension
Models / Modelos
To change the table name:
Subqueries are supported:
Controller interaction / Interacción desde un controlador
Creating records / Creación de registros
Sending emails / Envío de correos
Authentication system / Sistema de autenticación
Documentation / Documentación
Usage tutorial / Tutorial de uso
Progressive guide (Spanish): docs/tutorial/README.md
| # | Topic / Tema |
|---|---|
| 1 | Quick start / Inicio rápido |
| 2 | Typed env vars / Variables de entorno |
| 3 | Models & queries / Modelos ORM |
| 4 | Controllers / Controladores |
| 5 | Templates / Plantillas |
| 6 | Authentication / Autenticación |
| 7 | Email / Correo |
| 8 | Markdown, JSON & views / Markdown, JSON y vistas |
| 9 | SQL queries / Consultas SQL |
| 10 | Bootstrap & ops / Bootstrap y operación |
| 11 | Exceptions & tests / Excepciones y pruebas |
| 12 | File uploads / Subida de archivos |
| 13 | Encrypted credentials / Credenciales cifradas |
| 14 | View cache / Caché de vistas |
| 15 | Time / Tiempo (DLTime) |
| 16 | Advanced logs / Logs avanzados |
| 17 | Advanced Path / Path avanzado |
| 18 | PDF (view_pdf) |
| 19 | URL validation (BaseURL) |
| 20 | Credentials & Environment |
| 21 | Skeleton helpers & advanced ORM / Helpers del skeleton y ORM avanzado |
| 22 | Production deployment / Despliegue en producción |
| 23 | DL_TOKEN, CORS & ORM APIs / CORS, DL_TOKEN y ORM en APIs |
| 24 | ORM aggregations / Agregaciones y ORM avanzado |
| 25 | Advanced writes & transactions / Escritura avanzada y transacciones |
| 26 | Advanced DLRoute / Rutas avanzadas de DLRoute |
| 27 | DLAuth & route protection / DLAuth y protección de rutas |
Module reference: docs/ (DLConfig, DLDatabase, DLRequest, template syntax).
Infrastructure layer: DLRoute — routing, HTTP requests, file uploads / SVG sanitization.
Capa de infraestructura: DLRoute — enrutamiento, peticiones HTTP, subida de archivos / saneamiento SVG.
Esta documentación se actualizará progresivamente. DLCore posee muchas funcionalidades avanzadas que requieren tiempo para documentarse con precisión.
All versions of dlcore with dependencies
league/commonmark Version ^2.8
dlunire/dlroute Version ^2.0
phpmailer/phpmailer Version ^7.1
michelf/php-markdown Version ^2.0
dlunire/dlstorage Version ^0.2.2