Download the PHP package juannw/quarkphp-mini without Composer

On this page you can find all versions of the php package juannw/quarkphp-mini. 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 quarkphp-mini

QuarkPHP v1.0.0

QuarkPHP es un micro-framework PHP ligero para proyectos simples, construido con PHP 8.1+, bramus/router para enrutamiento, medoo/medoo para base de datos, y phpmailer/phpmailer para emails. Este README muestra cómo usar rutas, controladores, respuestas JSON, datos POST, consultas a base de datos, y cómo configurar la seguridad.

Requisitos

Instalación Básica

  1. Clona el repositorio y ejecuta:

  2. Copia .env.example a .env y configura (base de datos, SMTP, BASE_URL).
  3. Asegura permisos:

Seguridad

Uso del Framework

Definir Rutas

Las rutas se definen en app/routes.php usando bramus/router. Usa @ para mapear a métodos de controladores.

Controladores

Los controladores están en app/controllers/ y extienden BaseController. Ejemplo en app/controllers/HomeController.php:

Respuestas JSON

Usa $this->responseJson() en controladores para devolver JSON:

Manejo de Datos POST

Usa $this->postData() para obtener datos POST sanitizados (multipart, urlencoded, o JSON):

Formulario de Ejemplo (en app/views/contacto.php):

Consultas a Base de Datos

Usa el helper DB con Medoo para consultas. Ejemplo:

Envío de Emails con Plantillas

Usa EmailTemplate para enviar emails renderizando vistas en app/views/emails/:

Vista de Email (en app/views/emails/welcome.php):

Depuración

En APP_ENV=development, un panel de depuración aparece en la esquina inferior derecha, mostrando vista, datos y sesión. Los logs se guardan en writable/logs/log-YYYY-MM-DD.log.

Licencia

MIT License.

Autor

Juan Zuñiga ([email protected])


All versions of quarkphp-mini with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
vlucas/phpdotenv Version ^5.6
phpmailer/phpmailer Version ^6.9
bramus/router Version ~1.3
catfan/medoo Version ^2.2
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 juannw/quarkphp-mini contains the following files

Loading the files please wait ...