Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamarbandi/mvc_framework
This is my custom PHP framework, built to demonstrate my coding skills and understanding of software development principles. Although it's still a work in progress, it is a fully functional framework based on the MVC (Model-View-Controller) architecture.
https://github.com/kamarbandi/mvc_framework
mvc mvc-architecture mvc-framework mvc-pattern
Last synced: 1 day ago
JSON representation
This is my custom PHP framework, built to demonstrate my coding skills and understanding of software development principles. Although it's still a work in progress, it is a fully functional framework based on the MVC (Model-View-Controller) architecture.
- Host: GitHub
- URL: https://github.com/kamarbandi/mvc_framework
- Owner: Kamarbandi
- Created: 2025-01-08T16:17:37.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2025-02-03T13:38:59.000Z (8 days ago)
- Last Synced: 2025-02-03T14:39:10.481Z (7 days ago)
- Topics: mvc, mvc-architecture, mvc-framework, mvc-pattern
- Language: PHP
- Homepage:
- Size: 292 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My PHP Framework
This is my custom PHP framework, built to demonstrate my coding skills and understanding of software development principles. Although it's still a work in progress, it is a fully functional framework based on the MVC (Model-View-Controller) architecture.
## Features
- **MVC Architecture**: Separate layers for Models, Views, and Controllers to ensure a clean and organized code structure.
- **Database Integration**: Easy-to-use methods for interacting with a database using prepared statements to ensure security.
- **Autoloading**: Automatically loads classes when they are needed, reducing the need for manual imports.
- **Routing**: Simplified request routing to easily map URLs to controllers and methods.## Current Status
- This framework is **still being improved** but **fully functional** and can be used for small to medium projects.
- It is primarily created for personal use and as a showcase of my coding skills.
- While it's still being enhanced, you can use it for your projects as it provides essential functionality for building web applications.## Usage
1. Clone or download this repository.
2. Set up your database and configure the connection in the `config.php` file.
3. Start creating your models, controllers, and views in the respective directories.
4. Follow the MVC pattern to build your application.## Command Line Tool
Database
db:create Initializes a new database schema.
db:seed Executes the specified seeder to populate the database with known data.
db:table Fetches details about the selected table.
db:drop Drop/Delete a database.
migrate Identifies and runs a migration file.
migrate:refresh Executes the 'down' method followed by the 'up' method for a migration file.
migrate:rollback Executes the 'down' method for a migration fileGenerators
make:controller Creates a new controller file.
make:model Creates a new model file.
make:migration Creates a new migration file.
make:seeder Creates a new seeder file.
Other
list:migrations Lists all available migration files.## example
php azad make:controller Post