How dannysimfukwe/custom_php_framework works
Main Components
A. Core Framework Layer:
• Application Core (system/Application.php)
• Router (system/Router.php)
• Controller Base Class (system/Controller.php)
• Model Base Class (system/Model.php)
• View Loading System (system/Load.php)
B. Framework Services:
• Database Layer (libraries/Database.php)
• Session Management (libraries/Session.php)
• Security Services (libraries/Security.php)
• Cache System (system/Cache.php)
• Logger (system/Logger.php)
C. Supporting Components:
• Configuration Management
• Language System
• Input/Output Handling
• File Upload System
• REST API Support
┌─────────────────────────────────────────────┐
• Client Layer │
• ┘
• ↓
┌─────────────────────────────────────────────┐
• Front Controller │
• (index.php/Router) │
• ┘
• ↓
┌─────────────────────────────────────────────┐
• Application Core │
• ┌──────────┐ ┌──────────┐ ┌──────────┐ │
• Controllers│ │ Models │ │ Views │ │
• ┘ └──────────┘ └──────────┘ │
• ┘
• ↓
┌─────────────────────────────────────────────┐
• Framework Services │
• ┌────────┐ ┌─────────┐ ┌────────┐ ┌─────┐ │
• Database│ │Security │ │Session │ │Cache│ │
• ┘ └─────────┘ └────────┘ └─────┘ │
• ┘
Key Relationships to Highlight
a. Request Flow:
• Client Request → Front Controller → Router → Controller → Model/View
b. Service Dependencies:
• Controllers depending on Models
• Views being loaded by Controllers
• Database interactions through Models
• Security checks throughout the request lifecycle
Important Details
• Configuration management flow
• Database connection handling
• Session management process
• Caching mechanism
• Error handling and logging system
• Language/Internationalization support