Slim Framework v2

Build Status

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. Learn more at these links:

This repository contains documentation for the legacy 2.x branch.

Install

Via Composer

$ composer require slim/slim:~2.0

Requires PHP 5.3.0 or newer.

Usage

$app = new \Slim\Slim();
$app->get('/hello/:name', function ($name) {
    echo "Hello, " . $name;
});
$app->run();

Testing

phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email security@slimframework.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.