Yahoo Suche Web Suche

Suchergebnisse

  1. Suchergebnisse:
  1. Slim is a fast and powerful PHP framework that supports HTTP routing, middleware, PSR-7 and dependency injection. Learn how to install, use and contribute to Slim with the official blog, user guide and community resources.

    • Blog

      The Slim Framework uses the front controller pattern to send...

    • Support

      405 NOT_ALLOWED - windows 11, xampp 8.2, slim 4 and...

    • Subscribe with RSS

      We are excited to announce the Slim 4.12.0 release. The docs...

    • User Guide

      Slim is a PHP micro framework that helps you quickly write...

    • Contribute

      All developers are different, and this is why the Slim...

    • Tutorial

      Slim framework supports PSR-7 which is the PHP standard for...

    • Installation

      PHP 5.5 or newer; How to Install Slim. We recommend you...

    • Routing

      You can define application routes using proxy methods on the...

    • Overview
    • Installation
    • Choose a PSR-7 Implementation & ServerRequest Creator
    • Slim-Http Decorators
    • Hello World using AppFactory with PSR-7 auto-detection
    • Tests
    • Learn More
    • Security
    • For enterprise

    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.

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

    Before you can get up and running with Slim you will need to choose a PSR-7 implementation that best fits your application. A few notable ones:

    •Slim-Psr7 - This is the Slim Framework PSR-7 implementation

    •httpsoft/http-message & httpsoft/http-server-request - This is the fastest, strictest and most lightweight implementation available

    •Nyholm/psr7 & Nyholm/psr7-server - Performance is almost the same as the HttpSoft implementation

    •Guzzle/psr7 - This is the implementation used by the Guzzle Client, featuring extra functionality for stream and file handling

    •laminas-diactoros - This is the Laminas (Zend) PSR-7 implementation

    Slim-Http is a set of decorators for any PSR-7 implementation that we recommend is used with Slim Framework. To install the Slim-Http library simply run the following command:

    The ServerRequest and Response object decorators are automatically detected and applied by the internal factories. If you have installed Slim-Http and wish to turn off automatic object decoration then you can use the following statements:

    In order for auto-detection to work and enable you to use AppFactory::create() and App::run() without having to manually create a ServerRequest you need to install one of the following implementations:

    •Slim-Psr7 - Install using composer require slim/psr7

    •httpsoft/http-message & httpsoft/http-server-request - Install using: composer require httpsoft/http-message httpsoft/http-server-request

    •Nyholm/psr7 & Nyholm/psr7-server - Install using composer require nyholm/psr7 nyholm/psr7-server

    •Guzzle/psr7 - Install using composer require guzzlehttp/psr7

    •laminas-diactoros - Install using composer require laminas/laminas-diactoros

    To execute the test suite, you'll need to install all development dependencies.

    Learn more at these links:

    •Website

    •Documentation

    •Slack

    •Support Forum

    •Twitter

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

    Available as part of the Tidelift Subscription.

    The maintainers of Slim and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

  2. 5. Nov. 2019 · Learn how to use Slim 4, a lightweight and powerful PHP framework for building efficient and scalable web applications and RESTful APIs. This tutorial covers installation, directory structure, autoloader, configuration, DI container, bootstrap, front controller, middleware, routes and more.

    • Daniel Opitz
  3. 29. Sept. 2022 · Slim is a fast and efficient framework that routes HTTP requests to callback functions and supports middleware for specific handling. Learn how to use Slim for building modern RESTful API s and services with PSR-7 and PSR-15 interfaces.

  4. Slim Framework is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. Browse the GitHub repositories for Slim Framework and its related components, such as views, middleware, caching, and more.