marrrkkk / mvcore
A simple PHP framework for learning purposes.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.0
- vlucas/phpdotenv: ^5.6
This package is auto-updated.
Last update: 2025-06-22 23:02:28 UTC
README
MVCore is a lightweight PHP MVC framework designed for beginners to learn and understand MVC (Model-View-Controller) architecture. It provides a simple yet powerful structure for building web applications while maintaining clean code organization.
Features
- Simple MVC Architecture
- Lightweight and Fast
- Easy to Learn
- Database Migration System
- Built-in CLI Tool
Requirements
- PHP 8.0 or higher
- MySQL 5.7 or higher
- Composer
Installation
composer create-project marrrkkk/mvcore myapp
cd myapp
Usage
php mvcore serve
Create a new controller
php mvcore make:controller ControllerName
Create a new model
php mvcore make:model ModelName
Create a new migration
php mvcore make:migration create_table_name
Run migrations
php mvcore migrate up [migration_name]
Rollback migration
php mvcore migrate down [migration_name]
Configuration
DB_HOST=localhost DB_PORT=3306 DB_NAME=your_database DB_USER=root DB_PASSWORD= DB_CHARSET=utf8mb4
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MVCore is open-sourced software licensed under the MIT license.
Support
For support, please create an issue in the GitHub repository.
This framework is designed for educational purposes and basic web applications. While it's production-capable, consider using more established frameworks like Laravel for large-scale applications.