unknownrori / unknownrori-php
The Rori-PHP Framework
Fund package maintenance!
UnknownRori
Patreon
Ko Fi
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 2
Open Issues: 0
Type:project
pkg:composer/unknownrori/unknownrori-php
Requires
- eftec/bladeone: ^4.4
Requires (Dev)
- symfony/var-dumper: ^6.0
- vlucas/phpdotenv: ^5.4
README
Table of Contents
Overview
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.
Request Lifecycle Overview
First Step
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.
Kernel
Next, the incoming request will be sent to Core\Kernel to check http request is requesting a web page or a resource.
HTTP Request & Route
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.
Finishing
Lastly, after the client get the response the Runtime Middleware will fired for the second time, and we finished the request lifecycle!
Installation
- 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.
Requirement
Minimum
PHP : 7.4.Composer.
Recommended
PHP : 8+.NpmDatabase : Yes.
Tested Database
MysqlSqlite
Dependency
vlucas/phpdotenv.symfony/var-dumper.eftec/bladeone
Usage
For usage please read this for more information, Or you can use the local documentation inside the Core/docs/usage.md.
Roadmap
Basic CLIBasic RouteSimple ControllerMiddlewareBasic DatabaseBasic Framework Custom ExceptionNamespace OverhaulSessionCookieCacheCLI OverhaulPre-defined Database FunctionCollectionModelUser AuthenticationStorageModel OverhaulMiddleware GroupRoute prefix name
Note
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.