12 Commits

Author SHA1 Message Date
42774c8830 merge with 3.7.3 2025-11-03 15:05:03 +03:00
b61599aac9 gang banged middlewares 2025-11-03 15:01:26 +03:00
234691f011 mego dibil 2025-10-09 23:03:36 +07:00
69702888d1 middlewares fixed govno 2025-10-09 22:45:06 +07:00
4c7355bc03 resolved #9 2025-10-09 22:20:33 +07:00
df682e914e Merge pull request 'Change of condition "content-type"' (#22) from Hollspae/minimal:stable into stable
Reviewed-on: #22
2025-09-13 17:25:39 +07:00
e93ea5825e Change of condition "content-type" 2025-09-13 14:56:51 +05:00
c841250933 the 2025-08-21 18:41:11 +07:00
beaf55f00b The best code-to-utility Framework 2025-08-21 16:26:34 +07:00
7ae1d6ac70 refreshed 2025-08-21 16:22:48 +07:00
d9e4e0af6c 'hTTP/1.0' => 'HTTP/1.0' 2025-07-16 08:09:25 +07:00
d5f4955070 resolved #21 2025-07-03 15:10:25 +03:00
9 changed files with 345 additions and 167 deletions

View File

@@ -1,14 +1,8 @@
The MINIMAL framework that does **not limit your project with its own rules**, has **no dependencies**, implements the **best practices** of popular MVC-frameworks, it **VERY fast** and **optimized** for all the innovations in **PHP 8.2** 🤟
# MINIMAL
The best code-to-utility framework
Can be configured to work with **any database** `core::$session` and **any HTML template engine** `$this->view`
*personally, i prefer **ArangoDB** and **Twig***
## Nearest plans (first half of 2025)
1. Add **middlewares** technology
2. Route sorting in the router `router::sort()`
3. Add trigger routes from within routes
4. Think about adding asynchronous executions
5. Write an article describing the principles of the framework
## Nearest plans (2025)
1. Routes sorting `router::sort()`
## Installation
Execute: `composer require mirzaev/minimal`
@@ -16,49 +10,19 @@ Execute: `composer require mirzaev/minimal`
## Usage
*index.php*
```php
// Initializing the router
$router = new router;
// Initializing of routes
$router
->write('/', 'catalog', 'index', 'GET')
->write('/search', 'catalog', 'search', 'POST')
->write('/session/connect/telegram', 'session', 'telegram', 'POST')
->write('/product/$id', 'catalog', 'product', 'POST')
->write('/$categories...', 'catalog', 'index', 'POST'); // Collector (since 0.3.0)
// Initializing the core
$core = new core(namespace: __NAMESPACE__, router: $router, controller: new controller(false), model: new model(false));
$core = new core(namespace: __NAMESPACE__);
// Handle the request
echo $core->start();
// 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();
```
## Examples of projects based on MINIMAL