Slim 2 Documentation

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:

Install

Via Composer

  1. $ composer require slim/slim:~2.0

Requires PHP 5.3.0 or newer.

Usage

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

Testing

  1. 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.