alefcarvalho / slim-neo
A customized fork of Slim PHP Framework
Requires
- php: >=5.5.0
- container-interop/container-interop: ^1.2
- nikic/fast-route: ^1.0
- pimple/pimple: ^3.0
- psr/container: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- phpunit/phpunit: ^4.0
- squizlabs/php_codesniffer: ^2.5
Provides
This package is auto-updated.
Last update: 2023-12-09 02:16:02 UTC
README
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->getBody()->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.
Professional support
Slim is part of Tidelift which gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.
Credits
License
The Slim Framework is licensed under the MIT license. See License File for more information.