PHPackages                             apronprof/smantu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. apronprof/smantu

ActiveProject

apronprof/smantu
================

php framework

v1.2.4(1y ago)05MITPHPPHP &gt;=8.3

Since Apr 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nikitapavdev/smantu)[ Packagist](https://packagist.org/packages/apronprof/smantu)[ RSS](/packages/apronprof-smantu/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (4)Used By (0)

SmantU
======

[](#smantu)

SmantU is a free open source php framework with machine learning opportunities.

Getting started
---------------

[](#getting-started)

Download the files from the main branch using

> git clone apronprof/smantu

run

> composer install

you're up to work.

### File structure

[](#file-structure)

**app**

This folder will contain controllers, models and middlewares you create.

**config**

This folder is used for giving the framework data about your app, database and middlewares and urls.

**core**

You must never touch this folder, there are core files located inside of it.

**db**

This folder is meant to be used for keeping migrations and file databases (sqlite3).

**public**

There are views and assets in this folder.

**vendor**

Composer folder.

---

### CLI

[](#cli)

#### php console app:controller Name

[](#php-console-appcontroller-name)

creates a NameController.php file for a controller with base structure in app

> php console app:model Name

creates a Name.php file for a model with base structure in app

> php console db:migration Name

creates a Name.php file with base structure in db/migrations

> php console db:migrate

Activates all the migrations created

> php console db:rollback

activates the rollback function of each migration

> php console ml:trainer Name

creates a new Name.php model trainer in ml/trainers

> php console ml:train Name

initiates the train for a trainer called Name.php

> php console app:middleware Name

creates a new Name.php middleware

### Routes

[](#routes)

Routes are located in `config/urls.php`

By default the file with routes looks like this:

[![image](https://camo.githubusercontent.com/1bd41580ffe94da31d75ef13a6e61dde4572f12447af39353b6cc5f0eb7baab9/68747470733a2f2f692e6962622e636f2f5a637a396248712f53637265656e73686f742d323031392d30312d32382d31342d34302d33372e706e67)](https://camo.githubusercontent.com/1bd41580ffe94da31d75ef13a6e61dde4572f12447af39353b6cc5f0eb7baab9/68747470733a2f2f692e6962622e636f2f5a637a396248712f53637265656e73686f742d323031392d30312d32382d31342d34302d33372e706e67)

You can create new routes by using the methods `get()` and `post()` of the object `$router`. The method takes 2 parameters (route and controller). route must look like this 'shop/items' without slashes at the start and the end of a string.

The second parameter have to look like 'name\_of\_the\_controller@name\_of\_the\_method'.

the third parameter is for middlewares \[new \\App\\Middlewares\\HttpMethodMiddleware(), ...\]

In order to use parameters in url you need to use {} around the name of a parameter. (For example 'users/{id}'). The parameter will be in the array $parameters that will be given as the first parameter to your controller.

Use the method \_404 to choose a controller and its method for handling unknown routes. It takes only one parameter that is controller.

We're not done with this tutorial
---------------------------------

[](#were-not-done-with-this-tutorial)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance49

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

375d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2638046f60ed7ae2d09c3abd294b724faeb0460887b9e4b5bcee66b1a7262c0?d=identicon)[nikitapavdev](/maintainers/nikitapavdev)

---

Top Contributors

[![nikitapavdev](https://avatars.githubusercontent.com/u/207401977?v=4)](https://github.com/nikitapavdev "nikitapavdev (43 commits)")[![apronum](https://avatars.githubusercontent.com/u/30371338?v=4)](https://github.com/apronum "apronum (6 commits)")

### Embed Badge

![Health badge](/badges/apronprof-smantu/health.svg)

```
[![Health](https://phpackages.com/badges/apronprof-smantu/health.svg)](https://phpackages.com/packages/apronprof-smantu)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[neos/flow

Flow Application Framework

862.0M450](/packages/neos-flow)[neos/flow-development-collection

Flow packages in a joined repository for pull requests.

144179.3k3](/packages/neos-flow-development-collection)[eliashaeussler/typo3-warming

Warming - Warms up Frontend caches based on an XML sitemap. Cache warmup can be triggered via TYPO3 backend or using a console command. Supports multiple languages and custom crawler implementations.

20229.9k](/packages/eliashaeussler-typo3-warming)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
