|
|
pirms 3 dienas | |
|---|---|---|
| .. | ||
| README.md | pirms 3 dienas | |
| REQUEST_FLOW.md | pirms 3 dienas | |
A small PHP MVC framework inspired by a Classic ASP MVC framework.
composer install
php scripts/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/ migrationsscripts/ runnable PHP CLI scriptsThe 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 scripts/migrate.php up
php scripts/migrate.php down
php scripts/migrate.php status
php scripts/migrate.php make create_projects_table
php scripts/migrate.php fresh
php scripts/migrate.php fresh --seed
php scripts/seed_employees.php 1000
The employee directory page uses:
htmx for fragment-based form and summary updatesAlpine.js for lightweight page stateTabulator for the interactive employee tableSee REQUEST_FLOW.md for a chart of how requests and responses move through the framework.
Powered by TurnKey Linux.