[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-8152":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},8152,"Slim","slimphp\u002FSlim","slimphp","Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.","http:\u002F\u002Fslimframework.com",null,"PHP",12260,1967,477,10,0,1,4,11,74.98,"MIT License",false,"4.x",true,[26,27,28,29,30,31,32,33,34],"framework","micro-framework","php","php-micro-framework","psr-15","psr-3","psr-7","slim","slim-framework","2026-06-12 04:00:37","# Slim Framework\n\n[![Build Status](https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim\u002Factions\u002Fworkflows\u002Ftests.yml\u002Fbadge.svg?branch=4.x)](https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim\u002Factions\u002Fworkflows\u002Ftests.yml?query=branch:4.x)\n[![Coverage Status](https:\u002F\u002Fcoveralls.io\u002Frepos\u002Fgithub\u002Fslimphp\u002FSlim\u002Fbadge.svg?branch=4.x)](https:\u002F\u002Fcoveralls.io\u002Fgithub\u002Fslimphp\u002FSlim?branch=4.x)\n[![Total Downloads](https:\u002F\u002Fposer.pugx.org\u002Fslim\u002Fslim\u002Fdownloads)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fslim\u002Fslim)\n[![License](https:\u002F\u002Fposer.pugx.org\u002Fslim\u002Fslim\u002Flicense)](https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fslim\u002Fslim)\n\nSlim is a PHP micro-framework that helps you quickly write simple yet powerful web applications and APIs.\n\n## Installation\n\nIt's recommended that you use [Composer](https:\u002F\u002Fgetcomposer.org\u002F) to install Slim.\n\n```bash\n$ composer require slim\u002Fslim\n```\n\nThis will install Slim and all required dependencies. Slim requires PHP 7.4 or newer.\n\n## Choose a PSR-7 Implementation & ServerRequest Creator\n\nBefore 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:\n- [Slim-Psr7](https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim-Psr7) - This is the Slim Framework PSR-7 implementation\n- [httpsoft\u002Fhttp-message](https:\u002F\u002Fgithub.com\u002Fhttpsoft\u002Fhttp-message) & [httpsoft\u002Fhttp-server-request](https:\u002F\u002Fgithub.com\u002Fhttpsoft\u002Fhttp-server-request) - This is the fastest, strictest and most lightweight implementation available\n- [Nyholm\u002Fpsr7](https:\u002F\u002Fgithub.com\u002FNyholm\u002Fpsr7) & [Nyholm\u002Fpsr7-server](https:\u002F\u002Fgithub.com\u002FNyholm\u002Fpsr7-server) - Performance is almost the same as the HttpSoft implementation\n- [Guzzle\u002Fpsr7](https:\u002F\u002Fgithub.com\u002Fguzzle\u002Fpsr7) - This is the implementation used by the Guzzle Client, featuring extra functionality for stream and file handling\n- [laminas-diactoros](https:\u002F\u002Fgithub.com\u002Flaminas\u002Flaminas-diactoros) - This is the Laminas (Zend) PSR-7 implementation\n\n\n## Slim-Http Decorators\n\n[Slim-Http](https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim-Http) is a set of decorators for any PSR-7 implementation that we recommend is used with Slim Framework.\nTo install the Slim-Http library simply run the following command:\n\n```bash\ncomposer require slim\u002Fhttp\n```\n\nThe `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:\n```php\n\u003C?php\n\nuse Slim\\Factory\\AppFactory;\nuse Slim\\Factory\\ServerRequestCreatorFactory;\n\nAppFactory::setSlimHttpDecoratorsAutomaticDetection(false);\nServerRequestCreatorFactory::setSlimHttpDecoratorsAutomaticDetection(false);\n\n$app = AppFactory::create();\n\n\u002F\u002F ...\n```\n\n## Hello World using AppFactory with PSR-7 auto-detection\nIn 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:\n- [Slim-Psr7](https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim-Psr7) - Install using `composer require slim\u002Fpsr7`\n- [httpsoft\u002Fhttp-message](https:\u002F\u002Fgithub.com\u002Fhttpsoft\u002Fhttp-message) & [httpsoft\u002Fhttp-server-request](https:\u002F\u002Fgithub.com\u002Fhttpsoft\u002Fhttp-server-request) - Install using:\n`composer require httpsoft\u002Fhttp-message httpsoft\u002Fhttp-server-request`\n- [Nyholm\u002Fpsr7](https:\u002F\u002Fgithub.com\u002FNyholm\u002Fpsr7) & [Nyholm\u002Fpsr7-server](https:\u002F\u002Fgithub.com\u002FNyholm\u002Fpsr7-server) - Install using `composer require nyholm\u002Fpsr7 nyholm\u002Fpsr7-server`\n- [Guzzle\u002Fpsr7](https:\u002F\u002Fgithub.com\u002Fguzzle\u002Fpsr7) - Install using `composer require guzzlehttp\u002Fpsr7`\n- [laminas-diactoros](https:\u002F\u002Fgithub.com\u002Flaminas\u002Flaminas-diactoros) - Install using `composer require laminas\u002Flaminas-diactoros`\n\nThen create file _public\u002Findex.php_.\n\n```php\n\u003C?php\nuse Psr\\Http\\Message\\ResponseInterface as Response;\nuse Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse Slim\\Factory\\AppFactory;\n\nrequire __DIR__ . '\u002F..\u002Fvendor\u002Fautoload.php';\n\n\u002F\u002F Instantiate App\n$app = AppFactory::create();\n\n\u002F\u002F Add error middleware\n$app->addErrorMiddleware(true, true, true);\n\n\u002F\u002F Add routes\n$app->get('\u002F', function (Request $request, Response $response) {\n    $response->getBody()->write('\u003Ca href=\"\u002Fhello\u002Fworld\">Try \u002Fhello\u002Fworld\u003C\u002Fa>');\n    return $response;\n});\n\n$app->get('\u002Fhello\u002F{name}', function (Request $request, Response $response, $args) {\n    $name = $args['name'];\n    $response->getBody()->write(\"Hello, $name\");\n    return $response;\n});\n\n$app->run();\n```\n\nYou may quickly test this using the built-in PHP server:\n```bash\n$ php -S localhost:8000 -t public\n```\n\nGoing to http:\u002F\u002Flocalhost:8000\u002Fhello\u002Fworld will now display \"Hello, world\".\n\nFor more information on how to configure your web server, see the [Documentation](https:\u002F\u002Fwww.slimframework.com\u002Fdocs\u002Fv4\u002Fstart\u002Fweb-servers.html).\n\n## Tests\nTo execute the test suite, you'll need to install all development dependencies.\n\n```bash\n$ git clone https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim\n$ composer install\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Learn More\n\nLearn more at these links:\n\n- [Website](https:\u002F\u002Fwww.slimframework.com)\n- [Documentation](https:\u002F\u002Fwww.slimframework.com\u002Fdocs\u002Fv4\u002Fstart\u002Finstallation.html)\n- [Slack](https:\u002F\u002Fslimphp.slack.com)\n- [Support Forum](https:\u002F\u002Fdiscourse.slimframework.com)\n- [Twitter](https:\u002F\u002Ftwitter.com\u002Fslimphp)\n- [Resources](https:\u002F\u002Fgithub.com\u002Fxssc\u002Fawesome-slim)\n\n## Security\n\nIf you discover security related issues, please email security@slimframework.com instead of using the issue tracker.\n\n## For enterprise\n\nAvailable as part of the Tidelift Subscription.\n\nThe 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.](https:\u002F\u002Ftidelift.com\u002Fsubscription\u002Fpkg\u002Fpackagist-slim-slim?utm_source=packagist-slim-slim&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)\n\n## Contributors\n\n### Code Contributors\n\nThis project exists thanks to all the people who contribute. [Contribute](CONTRIBUTING.md).\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fslimphp\u002FSlim\u002Fgraphs\u002Fcontributors\">\n    \u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Fcontributors.svg?width=890&button=false\" \u002F>\n\u003C\u002Fa>\n\n### Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [Contribute](https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Fcontribute)\n\n#### Individuals\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Findividuals.svg?width=890\">\u003C\u002Fa>\n\n#### Organizations\n\nSupport this project with your organization. Your logo will show up here with a link to your website. [Contribute](https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Fcontribute)\n\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F0\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F0\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F1\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F1\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F2\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F2\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F3\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F3\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F4\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F4\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F5\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F5\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F6\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F6\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F7\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F7\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F8\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F8\u002Favatar.svg\">\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F9\u002Fwebsite\">\u003Cimg src=\"https:\u002F\u002Fopencollective.com\u002Fslimphp\u002Forganization\u002F9\u002Favatar.svg\">\u003C\u002Fa>\n\n## License\n\nThe Slim Framework is licensed under the MIT license. See [License File](LICENSE.md) for more information.\n","Slim 是一个 PHP 微框架，旨在帮助开发者快速构建简单而强大的 Web 应用程序和 API。它遵循 PSR-7、PSR-15 和 PSR-3 标准，支持多种 PSR-7 实现，如 Slim-Psr7、Guzzle\u002Fpsr7 等，提供灵活的 HTTP 消息处理能力。通过 Composer 可轻松安装，并要求 PHP 7.4 或更高版本。Slim 的轻量级特性使其非常适合用于创建 RESTful APIs、微服务以及需要高性能和低资源消耗的小型 Web 应用场景。",2,"2026-06-11 03:16:27","top_language"]