PHP model-view-controller framework

Maintainers

Package info

github.com/lukaszknasiecki/uho-mvc

pkg:composer/lukaszknasiecki/uho-mvc

Statistics

Installs: 2 106

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

0.1.2.1 2026-03-12 12:44 UTC

README

Simple PHP model-view-controller framwework using own ORM and Twig as templating system.

Setting up

To setup run:

composer install

Or for production environment:

composer install --no-dev

System requirements

This project is using PHP8.2+ and mySQL

Schema Validation

You can validate your schemas with schema-validate script. By default script with validate all schemas from application/models/json folder. You also define list of models to validate in /application_config/schemas.json and use application_config/schemas.json folder as first parameter of the command, and optional folder to look for schemas as a second parameter.

Examples:

chmod +x vendor/lukaszknasiecki/uho-mvc/bin/schema-validate vendor/lukaszknasiecki/uho-mvc/bin/schema-validate

or

vendor/lukaszknasiecki/uho-mvc/bin/schema-validate application_config vendor/lukaszknasiecki/uho-mvc/bin/schema-validate cms/application/models/_schemas.json cms/application/models/json

CMS Schema Clear

If you want to clear schemas from UHO-CMS related objects, you can use schema-app-clear script:

./vendor/lukaszknasiecki/uho-mvc/bin/schema-app-clear application/models/json/

Warning - don't use it for CMS schemas as they will be stripped of CMS-dedicated objects.

Model Building

Now, you can build/update your initial SQL tables for models with defined schemas. First parameter should be filename of your .env file. By default script with validate all schemas from application/models/json folder. You also define list of models to validate in /application_config/schemas.json by using application_config folder as the second parameter of the command, and an optional folder to look for schemas as a thirs parameter.

chmod +x vendor/lukaszknasiecki/uho-mvc/bin/schema-build vendor/lukaszknasiecki/uho-mvc/bin/schema-build application_config/.env

or

vendor/lukaszknasiecki/uho-mvc/bin/schema-build application_config/.env application_config/schemas.json

Sample index.php

'application_config' ]))->run(); ## Tests You can perform framework unit tests with: `composer install` `composer require --dev phpunit/phpunit` `composer test` ## Contact lukasz@knasiecki.com