This application run request handlers with request message received and produce a response message
Add to your "composer.json" file into require section :
"mulertech/application": "^1.0"
and run the command :
php composer.phar update
Run the command :
php composer.phar require mulertech/application "^1.0"
$app = new Hub([ControllerMiddleware::class]);
$projectPath = $app::projectPath();
- The application need the composer.json file in the project folder to determine its path.
$app::loadEnv($app::projectPath() . DIRECTORY_SEPARATOR . '.env.local');
$app::loadConfig($container, $app::projectPath() . DIRECTORY_SEPARATOR . 'config');
$response = $app->run(ServerRequest::fromGlobals());