DeltaPHP

Simple and fast PHP 5.4+ MVC framework with a modular organization.

Github

Router

Fast router with powerful routes based on nginx locations.

AbstractController

Provides access to the base objects Request, Response, View. It select the default template, and rendering its.

Utils

Collection of useful tools.

Application

Preparation and launching of request processing.

HttpWarp

Request, Response, Sessions.

Composer, Twig

Composer for a modular structure, and easy expansion. Twig for templates.

Documentation

Clone Delta Skeleton Application

git clone https://github.com/DeltaPHP/DeltaSkeletonApplication.git

Create new Controller

use DeltaCore\AbstractController;

class NewController extends AbstractController
{
    public function IndexAction()
    {

    }

}

Add route to config/routers.php

['/newcontroller', ['newcontroller', 'index']],

Create View

<!doctype html>
<head>
    <title>{{ pageTitle | default("Default Title") }}</title>
</head>
<html>
    <div class=”header”>Header content</div>
    <div class=”body”>
        {% block content %}
            Big text about DeltaPHP - new fast PHP framework...
            Current version: {{ version }}
        {% endblock %}
    </div>
    <div class=”footer”></div>
</html>

Assign vars to view

$this->getView()->assign('pageTitle', 'Main page');

All done!