mascot/mascot

The PHP micro-framework based on the Symfony Components

1.0.0 2020-04-03 15:09 UTC

This package is auto-updated.

Last update: 2024-03-29 03:59:04 UTC


README

Mascot, a simple Web Framework =============================

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.

Installation

The recommended way to install Mascot is through Composer:

composer require mascot/mascot

Alternatively, you can download the mascot.zip file and extract it.

More Information

Read the documentation for more information and changelog for upgrading information.

Tests

To run the test suite, you need Composer and PHPUnit:

composer install
phpunit

Support

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.

License

Mascot is licensed under the MIT license.