feras_altaleb/mvc_php

dev-main 2025-06-04 13:15 UTC

This package is auto-updated.

Last update: 2025-06-04 13:16:00 UTC


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.php and rename it to config.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.

4. Start Building

  • Create your controllers, models, and views in the appropriate directories.
  • Define your routes in the routes.php file.

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!