Download the PHP package roolith/framework without Composer
On this page you can find all versions of the php package roolith/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package framework
roolith-framework
Roolith PHP framework. Very minimalistic and less overhead.
Install
Documentation
- Cache documentation
- Config documentation
- Database documentation
- Event documentation
- Generator documentation
- Router documentation
- Template-engine documentation
If you want to use this or need any help, you may reach to
[email protected]
This framework has been developed for educational purpose!
Generator
Define route
Open app/Http/routes.php
and define routes as per documentation
Error page
If there is no route defined then by default it will look for 404.php
in viwes
folder.
Config
All application configuration has been stored on config/config.php
for more details read documentation
Constant
Application constants has been defined into /constant.php
Frontend workflow
Then
Before npm start open the gulpfile.js update browsersync options as per your need. Specially change vhost defined
local.roolith-framework.me
To add SCSS and JS use source/scss/app.scss
and source/js/app.js
Use
for production build. It will create min.css and min.js file.
Model
Model files located into app/Models
Controllers
Controller files located into app/Controllers
Views
View files are into /views
and view files are straight forward documentation
Let's keep it simple!
Print route URL inside template
Request
Validator
Sanitize
Array methods
Example:
List of methods -
- except
- chunk
- compact
- concat
- difference
- drop
- dropRight
- dropWhile
- filter
- remove
- findIndex
- indexOf
- join
- last
- first
- reverse
- take
- takeRight
- uniq
- find
- each
- contains
- map
- isMultidimensional
- resetKeys
- order
- orderBy
- orderByString
- random
- add
- flat
- dot
- exists
- get
- has
- pluck
- prepend
- query
- set
Localization
Get message
Set local
Once es
lang is set it will look lang/es/message.php
. So when es
has been set then below code will output -
Cookie
Set cookie
Get cookie
Delete cookie
Session
All versions of framework with dependencies
roolith/config Version 1.0.1
roolith/database Version 1.0.3
roolith/event Version 1.0.1
roolith/generator Version 1.0.3
roolith/router Version 1.0.8
roolith/template-engine Version 1.0.3
nesbot/carbon Version ^2.39