mttk2004 / phpure
phpure is a simple MVC framework written in PHP to help beginners understand the inner workings of a web application built with the MVC pattern.
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.0
- ext-json: *
- ext-pdo: *
- fakerphp/faker: ^1.24
- filp/whoops: ^2.16
- monolog/monolog: ^3.8
- nesbot/carbon: ^3.8
- respect/validation: ^2.4
- robmorgan/phinx: ^0.16.6
- twig/twig: ^3.18
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
README
PHPure Framework
A lightweight, pure PHP framework inspired by Laravel, designed to help beginners learn and understand how web applications work with the MVC pattern.
π Overview
PHPure provides a clean, simple, and elegant structure to build PHP applications. It includes essential features like routing, database ORM, template engine, middleware, validation, and more, while keeping the codebase easy to understand and maintain.
This framework is perfect for:
- β Learning the MVC architecture
- β Understanding how web frameworks work under the hood
- β Building small to medium-sized applications
- β Gaining a solid foundation before moving to larger frameworks like Laravel
π Quick Start
# Create a new PHPure project composer create-project mttk2004/phpure project_name cd project_name # Install dependencies npm install # Configure your environment cp .env.example .env # Run the development server npm run dev:all
Open http://localhost:8000 to see the result!
π Documentation
Detailed documentation is available in the Official PHPure Documentation.
π οΈ Key Features
- MVC Architecture - Clean separation of Models, Views, and Controllers
- Routing System - Simple and flexible routing
- Database ORM - Elegant database interactions
- Template Engine - Using Twig for powerful templating
- Middleware - Request/response filtering
π Notice
This project includes Twig, a template engine licensed under the BSD-3-Clause license, not MIT. All other components of PHPure are licensed under MIT.
π License
PHPure is open-source software licensed under the MIT license.
π¨βπ» Author
Created by Mai TrαΊ§n TuαΊ₯n Kiα»t.
π€ Contributing
Contributions are always welcome! See contributing guide for more information.
π Star History
Last updated: April 2025