Download the PHP package krag/karch without Composer
On this page you can find all versions of the php package krag/karch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package karch
A light-weight and fast MVC framework for php developers. This is build with a system similar to Laravel and for people who require light-weight framework than Laravel can easily adapt to this as well.
We have a well documented documentation to get started with the framework, making it a breeze to get started with the framework.
Content :
- Instalation
- Routes
- Controllers
- Special Functions
- Requests
- Database Queries
- Migrations
- Error Handling
Instalation
Using composer,
Using the git repository url download the framework from github or run the following code on the terminal, opened in your folder.
Routes
Class for the routes are included inside the routes
folder as web.php
.
use
to include the route class.
Controllers
Class for the controllers are included inside the routes
folder as controller.php
.
use
to include the controller class.
Special Functions
Views
To view a html or php file. All the view file locations are given relative to the Views
folder.
eg:- /index.html
or index.html
( for a file as index.html
inside the views folder )
Redirects
To redirect a web page insert
here you should insert the full url of the web page.
Assets
To load the assets like images, documents and videos for public view insert
here you should insert the relative url of the files inside the public
folder skiping ../public/
part of the relative url.
Route
Return the url
of a specific route
in the website.
Request
Return the $_REQUEST
values of the website.
Config
Return the $_ENV
values of the website inside the .env
file.
Get
Return the $_GET
request values of the website.
Post
Return the $_POST
request values of the website.
Cookie
Return the $_COOKIE
values of the website.
Files
Return the $_FILES
values of the website.
Session
Return the $_SESSION
values of the website stored in the web server.
Requests
Class for the requests are included inside the includes
folder as data_handling.php
.
use
to include the requests class.
env data
get, post and session requests
get request
post request
Database Queries
Class for the db queries are included inside the includes
folder as database.php
.
use
to include the database class.
Records selection
Mass records insert
Single record insert
Update records
Delete records
Migrations
All the migrations required to create tables are in the database/migrations
folder, each with their respective table name.
to run a migration such as below run the code
Error Handling
Class for the error handling are included inside the includes
folder as error_handling.php
.
use
to include the ErrorHandling class.
view the 404 error
for custom 404
error message
view the 405 error
for custom 405
error message
view the 500 error
for custom 500
error message