This project is a lightweight PHP MVC (Model-View-Controller) project designed to help in understanding the core concepts and implementation of the MVC architectural pattern.
- PHP: The primary programming language for the application logic.
- Composer: Used for dependency management.
- SQLite: A file-based relational database used for data storage.
- PHPUnit: The testing framework for PHP unit tests.
- MVC Architecture: The foundational design pattern structuring the application.
- Frontend Assets: Includes basic JavaScript (Alpine.js) and CSS (Tailwind.js) for client-side functionality and styling.
- PHP (version 8.4 or higher recommended)
- Composer
- Navigate to the project root directory.
- Install PHP dependencies using Composer:
composer install
The project uses SQLite. The database file db/db.sqlite should be present. If you need to initialize or reset the test database, you can run:
php db/init_test_db.phpTo start the PHP development server, run the following command from the project root:
composer run devAfter starting the server, open your web browser and navigate to http://localhost:3333.
To execute the test suite, use the Composer script:
composer run test