Skip to content

air-php/application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Application

Build Status Scrutinizer Code Quality

The application library includes abstract classes representing a web application.

Installation

Installation via Composer is recommended.

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

Application

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

<?php

use Air\Application\Application;

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

The application needs to be configured with a router, dispatcher and request:

<?php

$app = new MyApp;

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

Finally, you can run the app:

$app->run();

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages