Important Note: This framework was created for educational and practice purposes. It lacks several features necessary for production-ready applications. Please use it exclusively for development and learning purposes.
-
MVC Pattern: This framework follows the Model-View-Controller architectural pattern, providing a structured way to develop web applications.
-
Service Container and Dependency Injection: It includes a simple implementation of a service container and dependency injection for managing and injecting dependencies into your application.
-
Facade and Singleton: You can utilize facades and singletons to access services and components easily.
-
Custom CLI Script: A custom CLI script is available, inspired by Laravel's Artisan, to run a PHP local server and simplify common development tasks.
-
Clone the repository:
git clone https://github.com/A3Brothers/php-custom-framework.git
-
Run composer install:
composer install
-
Copy the .env.example file:
cp .env.example .env
-
Open the .env file and fill in the necessary database information.
-
Run the PHP local server using the custom CLI script:
php artisan serve 8000
-
Access your application in a web browser at
http://localhost:8000
(or a different port if specified).
If you find this project interesting and would like to contribute, please feel free to fork the repository and submit your pull requests. While this project is primarily for practice, contributions are always welcome, and they might inspire future updates.
If you appreciate this project or my work, consider giving it a star and following me on GitHub. Your support encourages me to continue working on new projects and improving existing ones.
While this framework is intentionally limited in scope, I may periodically work on adding more features and improvements. Please stay tuned for updates in the future.
Thank you for checking out my custom PHP framework. Enjoy exploring and learning from it! If you have any questions or feedback, don't hesitate to reach out.