Modular Framework
1.0
A light and thin PHP Framework
|
Welcome to Modular Framework.
Modular is a lightweight framework to create webservices or websites fast. It is heavily inspired by Spring Boot, so if you like Spring Boot you will also like Modular.
Why should you consider using Modular instead of Spring Boot? While one obvious reason is that you can program with PHP, there are numerous other benefits to using Modular. For instance, with Modular, you can directly upload your source code onto any web server and have it up and running without needing to compile or perform any other additional steps. As root servers can be quite expensive these days, opting for Modular can help you save money, as it can be run on any server with PHP installed. By doing a quick search online, you can easily find web hosting providers offering plans starting from as low as $2. In other words, hosting an API or website will cost you as little as $2.
Download Modular Framework here.
Create an empty folder and put an index.php
file inside of it. Inside the index.php
file include the modular.phar
:
To make sure that routing is working properly create a .htaccess
file in the folder as well:
Now you can start a min. PHP 7.4 server. A folder Port
should have appeared in your project directory now. Here you will find some examples how the basic structure of the framework is set up.
You can use Docker to create a suitable server. Paste docker-compose.yml and Dockerfile inside your project directory and run:
If you want to skip these steps you can just clone the basic project from here.
Routing
Customization
Coming soon...
Coming soon...