mirzaev/minimal

The best code-to-utility framework

Installs: 87

Dependents: 1

Suggesters: 0

Security: 0

Type:framework

pkg:composer/mirzaev/minimal

3.7.3 2025-10-25 11:39 UTC

README

The best code-to-utility framework

Nearest plans (2025)

  1. Routes sorting router::sort()

Installation

Execute: composer require mirzaev/minimal

Usage

index.php

// Initializing the core
$core = new core(namespace: __NAMESPACE__);

// Initializing routes
$core->router
	->write('/', new route('index', 'index'), 'GET')
	->write('/search', new route('search', 'search'), 'POST')
	->write('/product/create', new route('product', 'create'), 'PUT')
	->write('/product/$id', new route('product', 'read'), 'GET')
	->write('/product/$id', new route('product', 'read'), 'POST')
	->write('/$categories', new route('categories', 'read'), 'GET') // Collector (since 0.3.0)
;

// Handling the request
$core->start();