Download the PHP package linio/tortilla without Composer
On this page you can find all versions of the php package linio/tortilla. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tortilla
Linio Tortilla
Linio Tortilla provides a very thin web abstraction layer built on top of FastRoute and Pimple. No frills, light and efficient. We believe that the web is just a delivery mechanism and no framework should dictate how you design the architecture of your applications.
And, just like a tasty super-thin tortilla, you can wrap it around anything you want.
Install
The recommended way to install Linio Tortilla is through composer.
If you need help preparing your tortilla, there are recipes available:
$ composer create-project linio/burrito-recipe full_app
$ composer create-project linio/tortilla-recipe basic_app
Tests
To run the test suite, you need install the dependencies via composer, then run PHPUnit.
$ composer install
$ phpunit
Goals
- Efficiency at all costs
- Reduce, as much as possible, the amount of moving parts under the hood
- Tackle complexity
Usage
Preparing your tortilla is quite simple. This is an example of a simple front-controller:
You can also define controllers as services instead of closures. Since a Tortilla application is also a Pimple container:
Defining actions
The Linio Tortilla dispatcher will always dispatch the HTTP request to your controller actions as the first argument. The method signature looks like this:
We do this to keep the dispatching procedure efficient. If we decided to use PHP's reflection mechanism to decide whether to inject the request object or not, we would lose precious milliseconds.
All versions of tortilla with dependencies
linio/common Version ^4.1
linio/microlog Version ~1.0
linio/util Version ~4.0
monolog/monolog Version ^2.3
nikic/fast-route Version ~1.1
pimple/pimple Version ~3.0
symfony/event-dispatcher Version ~6.1.9
symfony/http-foundation Version ~6.1.9
symfony/http-kernel Version ~6.2.4