PHP code example of blast / application

1. Go to this page and download the library: Download blast/application library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

blast / application example snippets




use Blast\Application\Kernel\Foundation as Application

$application = new Application();



$application->setConfig([
  'name' => 'base application'
]);



//should return an array!
$config = 



use WellRESTed\Message\Response;
use WellRESTed\Message\ServerRequest;
use Acme\Strategy;

$application->setStrategy(new Strategy);
$application->dispatch(ServerRequest::getServerRequest(), new Response);




use League\Container;

$application->setContainer(new Container());