Back to Slim

Slim 2 Documentation

docs/v2/index.md

latest1.4 KB
Original Source

Slim Framework v2

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

bash
$ composer require slim/slim:~2.0

Requires PHP 5.3.0 or newer.

Usage

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

Testing

bash
phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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