Mascot is a fork of Silex, the PHP micro-framework to develop websites based on Symfony components:
<?php
require_once __DIR__.'/../vendor/autoload.php';
$app = new Mascot\Application();
$app->get('/hello/{name}', function ($name) use ($app) {
return 'Hello '.$app->escape($name);
});
$app->run();
Mascot works with PHP 7.2 or later.
The recommended way to install Mascot is through Composer:
composer require mascot/mascot
Alternatively, you can download the mascot.zip file and extract it.
Read the documentation for more information and changelog for upgrading information.
To run the test suite, you need Composer and PHPUnit:
composer install
phpunit
If you have a configuration problem use the mascot tag on StackOverflow to ask a question.
If you think there is an actual problem in Mascot, please open an issue if there isn't one already created.
Mascot is licensed under the MIT license.