1. Go to this page and download the library: Download linio/tortilla 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/ */
linio / tortilla example snippets
ymfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Linio\Tortilla\Application;
$app = new Application();
$app->get('/hello/{name}', function (Request $request, $name) {
return new Response('Hello ' . $name);
});
$app->run();
inio\Tortilla\Application;
$app = new Application();
$app['default'] = function () {
return new Acme\Controller\DefaultController();
};
$app->get('/hello/{name}', 'default:indexAction');
$app->run();
use Symfony\Component\HttpFoundation\Request;
public function yourAction(Request $request, $arg1, $arg2, ...);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.