A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/l0gicgate/Slim below:

l0gicgate/Slim: Slim Framework source code

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

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.

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:

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.

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

Please see CONTRIBUTING for details.

Learn more at these links:

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

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4