Skip to content

l0gicgate/Slim

This branch is 334 commits behind slimphp/Slim:3.x.

Folders and files

NameName
Last commit message
Last commit date
Apr 30, 2017
May 7, 2016
Mar 21, 2017
Jun 21, 2015
Oct 11, 2016
Feb 9, 2016
Sep 23, 2016
Jun 17, 2015
Mar 21, 2017
Jul 16, 2013
Jan 3, 2017
Mar 21, 2017
Feb 15, 2017
Jan 1, 2016
Aug 2, 2015

Repository files navigation

Slim Framework

Build Status Coverage Status Total Downloads License

Slim is a PHP micro-framework that helps you quickly write simple yet powerful web applications and APIs.

Installation

It's recommended that you use Composer to install Slim.

$ composer require slim/slim "^3.0"

This will install Slim and all required dependencies. Slim requires PHP 5.5.0 or newer.

Usage

Create an index.php file with the following contents:

<?php

require 'vendor/autoload.php';

$app = new Slim\App();

$app->get('/hello/{name}', function ($request, $response, $args) {
    return $response->write("Hello, " . $args['name']);
});

$app->run();

You may quickly test this using the built-in PHP server:

$ php -S localhost:8000

Going to http://localhost:8000/hello/world will now display "Hello, world".

For more information on how to configure your web server, see the Documentation.

Tests

To execute the test suite, you'll need phpunit.

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Learn More

Learn more at these links:

Security

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

Credits

License

The Slim Framework is licensed under the MIT license. See License File for more information.

About

Slim Framework source code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.9%
  • ApacheConf 0.1%