Bump actions/checkout from 5 to 6 (#3420)
Bumps actions/checkout from 5 to 6.
updated-dependencies:
- dependency-name: actions/checkout dependency-version: ‘6’ dependency-type: direct:production update-type: version-update:semver-major …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Slim Framework
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.
This will install Slim and all required dependencies. Slim requires PHP 7.4 or newer.
Choose a PSR-7 Implementation & ServerRequest Creator
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-Http Decorators
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
ServerRequestandResponseobject 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:Hello World using AppFactory with PSR-7 auto-detection
In order for auto-detection to work and enable you to use
AppFactory::create()andApp::run()without having to manually create aServerRequestyou need to install one of the following implementations:composer require slim/psr7composer require httpsoft/http-message httpsoft/http-server-requestcomposer require nyholm/psr7 nyholm/psr7-servercomposer require guzzlehttp/psr7composer require laminas/laminas-diactorosThen create file public/index.php.
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.
Tests
To execute the test suite, you’ll need to install all development dependencies.
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.
For enterprise
Available as part of the Tidelift Subscription.
The maintainers of
Slimand 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.Contributors
Code Contributors
This project exists thanks to all the people who contribute. Contribute.
Financial Contributors
Become a financial contributor and help us sustain our community. Contribute
Individuals
Organizations
Support this project with your organization. Your logo will show up here with a link to your website. Contribute
License
The Slim Framework is licensed under the MIT license. See License File for more information.