Download the PHP package haykay/mvc-boilerplate without Composer
On this page you can find all versions of the php package haykay/mvc-boilerplate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download haykay/mvc-boilerplate
More information about haykay/mvc-boilerplate
Files in haykay/mvc-boilerplate
Package mvc-boilerplate
Short Description A secure, enterprise-grade MVC framework in PHP
License MIT
Informations about the package mvc-boilerplate
Fortress
A secure, enterprise-grade MVC framework in PHP with built-in security features, middleware pipeline, and advanced dependency injection. Perfect for teaching modern PHP development patterns and building production-ready micro PHP applications.
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Features
- 🔒 Built-in Security: SQL injection protection, input sanitization, and secure query building
- 🛡️ Middleware Pipeline: Rate limiting, request throttling, and extensible middleware system
- 🏗️ Advanced DI Container: Interface binding, auto-resolution, and singleton management
- ⚡ Performance: Optimized routing with middleware caching and efficient request handling
- 🎯 Clean Architecture: Separation of concerns with proper exception handling
- 🛠️ CLI Tools: Laravel Artisan-like command line interface for development
- 📚 Educational: Perfect for learning modern PHP development patterns
Prerequisites
- Composer PHP package manager [https://getcomposer.org]
- PHP 7.4 or higher
- MySQL/MariaDB database
Installation
1)Install Composer PHP package manager [https://getcomposer.org]
2) Clone this Repository in CLI by running:
3) Navigate to the project directory:
4) Install dependencies:
5) Configure your database in config.php:
6) Start the development server:
Or visit via traditional web server:
Architecture
fortress follows a clean MVC architecture with additional security layers:
Security Features
🔒 SQL Injection Protection
- Parameterized queries with PDO
- Input sanitization and validation
- Secure database connection handling
🛡️ Rate Limiting & Throttling
🏗️ Dependency Injection
CLI Commands
Fortress includes a Laravel Artisan-like CLI system for development tasks:
Development Server
Available Commands
run- Start the development server with built-in PHP server
Extending the CLI
Create new commands by implementing CommandInterface:
Register commands in app/Core/Console/Console.php.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Changelog
v2.1.0 (Latest)
- ✅ Added Laravel Artisan-like CLI system
- ✅ Implemented development server command
- ✅ Enhanced developer experience with command-line tools
v2.0.0
- ✅ Fixed critical SQL injection vulnerabilities
- ✅ Added comprehensive exception handling system
- ✅ Implemented advanced dependency injection container
- ✅ Built middleware pipeline with rate limiting
- ✅ Added request throttling capabilities
- ✅ Enhanced security throughout the framework
v1.0.0 (Original)
- Basic MVC structure
- Simple routing system
- Basic database connection
License
This project is licensed under the MIT License - see the LICENSE.md file for details