2017 © Pedro Peláez
 

library application

An abstract web application.

image

air-php/application

An abstract web application.

  • Thursday, December 10, 2015
  • by marklocker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 756 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Application

Build Status Scrutinizer Code Quality, (*1)

The application library includes abstract classes representing a web application., (*2)

Installation

Installation via Composer is recommended., (*3)

"require": {
    "air-php/application": "dev-master"
}

Application

The Application class is abstract, and as such, you must provide your own implementation., (*4)

<?php

use Air\Application\Application;

class MyApp extends Application
{
    // Custom implementation here…
}

The application needs to be configured with a router, dispatcher and request:, (*5)

<?php

$app = new MyApp;

$app->setRouter($router);
$app->setDispatcher($dispatcher);
$app->setRequest($request);

Finally, you can run the app:, (*6)

$app->run();

The Versions