Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 16, 2024 via composer

slim/slim 3.9.1

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs
Package summary
Share
1
issue
1
high severity
meta
1
2
licenses
4
MIT
1
BSD-3-Clause
Package created
15 Apr 2012
Version published
26 Nov 2017
Maintainers
4
Total deps
5
Direct deps
4
License
MIT

Issues

1

1 high severity issue

high
via: container-interop/container-interop@1.2.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
4 Packages, Including:
container-interop/container-interop@1.2.0
pimple/pimple@v3.5.0
psr/container@1.1.2
slim/slim@3.9.1

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
nikic/fast-route@v1.3.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

4
All Dependencies CSV
β“˜ This is a list of slim/slim 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
container-interop/container-interop1.2.072.25 kBMIT
prod
1
nikic/fast-routev1.3.030.33 kBBSD-3-Clause
prod
pimple/pimplev3.5.032.71 kBMIT
prod
psr/container1.1.23.5 kBMIT
prod

Visualizations

Frequently Asked Questions

What does slim/slim do?

Slim/Slim is a PHP micro-framework that immensely simplifies the process of building powerful web applications and APIs. Its minimalistic architecture and rich features make it ideal for rapidly creating robust applications and APIs with PHP.

How do you use slim/slim?

To utilize Slim/Slim, you should first install it through Composer, a tool for managing dependency in PHP. You can install Slim and all its necessary dependencies by running composer require slim/slim in the command line. Slim requires PHP 7.4 or newer.

Once installed, you can start using Slim for building your web applications or APIs. Here is a basic example of how to setup a simple 'Hello World' application using Slim:

<?php
use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request;
use Slim\Factory\AppFactory;

require __DIR__ . '/../vendor/autoload.php';

$app = AppFactory::create();
$app->addErrorMiddleware(true, true, true);

$app->get('/', function (Request $request, Response $response) {
    $response->getBody()->write('Hello World');
    return $response;
});

$app->run();

In this example, a GET route for the root URL / is defined. When you access the root URL, it will display 'Hello World'. Remember to run this script with a suitable web server environment, like Apache or NGINX.

After writing your own routes and functions, you can test your application using built-in PHP server by running php -S localhost:8000 -t public from your project directory.

Where are the slim/slim docs?

For a more comprehensive guide on using Slim/Slim, refer to the official Slim Framework documentation. It can be found at https://www.slimframework.com/docs/v4/start/installation.html. The documentation provides a detailed guide for installing, configuring, and getting up to speed with using the Slim framework to build PHP applications and APIs.