|
|
před 3 dny | |
|---|---|---|
| .. | ||
| README.md | před 3 dny | |
A small PHP MVC framework inspired by a Classic ASP MVC framework.
composer install
php migrate.php up
php -S localhost:8000 -t public
Open:
http://localhost:8000
Try:
http://localhost:8000/users/123
Employee form:
http://localhost:8000/employees
Browser → public/index.php → Request → Dispatcher → Router → Route → Controller → ViewModel/Repository → View → Response
core/ framework classesapp/Controllers/ application controllersapp/ViewModels/ view model classesapp/Repositories/ data access classesapp/Views/ PHP templatesroutes/web.php route definitionsdatabase/migrations/ migrationsThe default database is SQLite and points to:
database/app.sqlite
The database file is created automatically when the app first needs it.
Run migrations from the PHP CLI:
php migrate.php up
php migrate.php down
php migrate.php status
php migrate.php make create_projects_table
php migrate.php fresh
php migrate.php fresh --seed
The employee directory page uses:
htmx for fragment-based form and summary updatesAlpine.js for lightweight page stateTabulator for the interactive employee tablePowered by TurnKey Linux.