feras_altaleb/mvc_php
Composer 安装命令:
composer require feras_altaleb/mvc_php
包简介
MVC PHP Small Framework
README 文档
README
MVC PHP Framework
Created by Feras Altaleb — for educational purposes only.
A lightweight, extensible MVC framework built with native PHP to help you kickstart web applications quickly and efficiently.
🚀 Features
- MVC Architecture — Clean separation of concerns using the Model-View-Controller pattern.
- Simple Routing — Intuitive and flexible routing system.
- Database Abstraction — Easy database interactions via PDO.
- Security — Built-in protection against common vulnerabilities.
- Extensible — Easily add new features and functionality.
- Lightweight — Minimal dependencies for optimal performance.
🛠️ Getting Started
1. Clone the Repository
git clone https://github.com/AltalebFeras/template_empty_mvc_for_any_new_project_php_native.git
2. Install Dependencies
composer install
3. Configure Your Environment
- Copy
config_example.phpand rename it toconfig.php. - Update the settings as needed for your environment (development or production):
- Set up your database connection in
config.php. - Set your base URL in
config.php. - Configure mail settings in
config.php. - Set your timezone in
config.php.
- Set up your database connection in
4. Start Building
- Create your controllers, models, and views in the appropriate directories.
- Define your routes in the
routes.phpfile.
5. Run the Application
Access your application in the browser:
http://localhost/path-to-your-project/public
📁 Directory Structure
src/ # Core application code (controllers, repositories, models, views, services)
public/ # Public-facing files (images, css, js, index.php, .htaccess)
🧰 Best Practices
- Use the built-in security features to protect your application.
- Test your application thoroughly before deploying to production.
- Monitor your application for performance and security issues.
- Update your application regularly to keep it secure and up-to-date.
🤝 Contributing
Contributions are welcome!
If you have suggestions for improvements or new features, please open an issue or submit a pull request.
👤 Author
Feras Altaleb
GitHub
⭐️ Enjoy building amazing web applications with this simple MVC framework!
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-16