Rori-PHP
is custom non production web application framework inspired by Laravel syntax and elegantness. A web framework provides a structure and starting point for your application allowing you to focus on creating something amazing.
Rori-PHP
also come with CLI
, type in terminal php cli
.
The entry point for all request to Rori-PHP Application is in public/index.php, this file does not contain a lot of code, but rather loading a starting point for framework. this file will load server.php to load composer autoload.php and bootstrap.php in app
, core
and vendor
directory.
Next, the incoming request will be sent to Core\Kernel
to check http request is requesting a web page or a resource.
Next, the request will be sent to Route to depending on type of the request, these Route serve as central location that all request will flow through, Runtime Middleware
will be fired via Core\Support\Http\Middleware
if the request is not a resource, if the request available in Routing, then Core\Support\Http\Route
will fired the Controller Method.
Lastly, after the client get the response the Runtime Middleware
will fired for the second time, and we finished the request lifecycle!
- Enter the release page in this repository.
- Download the latest version.
- enter the downloaded folder.
- run
composer install
- run
composer dump-autoload
. - create something amazing!
Or using Composer
composer create-project unknownrori/unknownrori-php
Note : Master branch in this repository is used for development do not use this version for development of new website or something.
PHP : 7.4
.Composer
.
PHP : 8+
.Npm
Database : Yes
.
Mysql
Sqlite
vlucas/phpdotenv
.symfony/var-dumper
.eftec/bladeone
For usage please read this for more information, Or you can use the local documentation inside the Core/docs/usage.md
.
Basic CLIBasic RouteSimple ControllerMiddlewareBasic DatabaseBasic Framework Custom ExceptionNamespace OverhaulSessionCookieCacheCLI OverhaulPre-defined Database FunctionCollectionModelUser AuthenticationStorageModel OverhaulMiddleware GroupRoute prefix name
Q : Why you create this custom non production framework?
A : Because i want to polish my backend skill, documentation making, decision making, and of course code efficiency.
Q : Is this can be used in production.
A : You can use it, but i cannot guarantee the security.
Q : Can i use this for future my project?
A : Yea sure, if something goes wrong you can create issues, feedback encouraged.
Q : The framework name is so funny
A : Yea i am out of name idea.