The core of the Laasti framework.
Maximizes flexibility with the use of standards and callables.
Provides basic services that any apps need:
Reserved words: config, response, request, kernel, error_handler Usually used with League/container
- Multiple environments (develop, tests, staging, production...)
- An ArrayAccess implementation or plain array registered to the config container key
- Reroute exceptions
- Handle exception by types
- Notify exceptions by type
- Manage errors
An abstract kernel implementation that takes an input and generate an output using middlewares.
Http Kernel implementation takes a PSR7 ServerRequestInterface and outputs a PSR7 ResponseInterface. The kernel accepts any callable as a runner, the callable will be passed a request and a response.
Console Kernel takes a command and displays the result
A cookie object that you can easily attach to your responses (withHeader('Set-Cookie', (string) $cookie)
)
laasti/route: An elegant wrapper for nikic fast routes
A simple session handler (defaults to native)
chief
DBAL
composer require laasti/application
$config = [
'routes' => [
['GET', '/welcome', 'MyControllerClass::welcome'],
],
];
$app = new Laasti\Application\Application();
$app->run(Symfony\Component\HttpFoundation\Request::create('/welcome')); //Outputs
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
See CHANGELOG.md for more information.
Author: Sonia Marquette (@nebulousGirl)
Released under the MIT License. See LICENSE.txt file.