air-php / application
An abstract web application.
Installs: 2 837
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.4.0
- air-php/dispatcher: ~0.1
- air-php/http: ~0.1
- air-php/routing: ~0.1
- container-interop/container-interop: ~1.0
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-12-31 04:17:52 UTC
README
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();