Download the PHP package ngodinhloc/jennifer without Composer
On this page you can find all versions of the php package ngodinhloc/jennifer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ngodinhloc/jennifer
More information about ngodinhloc/jennifer
Files in ngodinhloc/jennifer
Download ngodinhloc/jennifer
More information about ngodinhloc/jennifer
Files in ngodinhloc/jennifer
Vendor ngodinhloc
Package jennifer
Short Description Jennifer Framework
License MIT
Homepage https://github.com/ngodinhloc/jennifer
Package jennifer
Short Description Jennifer Framework
License MIT
Homepage https://github.com/ngodinhloc/jennifer
Keywords php frameworkMVC Framework
Please rate this library. Is it a good library?
Informations about the package jennifer
Jennifer - A Simple PHP Framework
Jennifer is a simple PHP framework that implements MVC pattern.
Configuration
composer require ngodinhloc/jennifer
Usage
Single Point Entry
index.php
use Jennifer\Http\Response;
use Jennifer\Http\Router;
use Jennifer\Sys\System;
try {
$system = new System([DOC_ROOT . "/config/env.ini"]);
$system->setRouter(new Router([DOC_ROOT . "/config/routes.ini"]))->loadView()->renderView();
} catch (Exception $exception) {
(new Response())->error($exception->getMessage(), $exception->getCode());
}
api/index.php
use Jennifer\Api\Api;
use Jennifer\Http\Response;
use Jennifer\Sys\System;
use thedaysoflife\Api\ServiceMapper;
try {
$system = new System([DOC_ROOT . "/config/env.ini"]);
$system->setApi(new Api(new ServiceMapper()))->runAPI();
} catch (Exception $exception) {
(new Response())->error($exception->getMessage(), $exception->getCode());
}
controllers/index.php
use Jennifer\Http\Response;
use Jennifer\Http\Router;
use Jennifer\Sys\System;
try {
$system = new System([DOC_ROOT . "/config/env.ini"]);
$system->setRouter(new Router([DOC_ROOT . "/config/routes.ini"]))->loadController()->runController();
} catch (Exception $exception) {
(new Response())->error($exception->getMessage(), $exception->getCode());
}
For example of implementation and usage, please take a look at Thedaysoflife project https://github.com/ngodinhloc/thedaysoflife.com which was developed using Jennifer framework
All versions of jennifer with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
The package ngodinhloc/jennifer contains the following files
Loading the files please wait ...