{"id":18929517,"url":"https://github.com/thecodingmachine/symfony-middleware","last_synced_at":"2025-07-04T23:07:30.330Z","repository":{"id":26517859,"uuid":"29970700","full_name":"thecodingmachine/symfony-middleware","owner":"thecodingmachine","description":"This package provides a StackPHP middleware that can be used to use a Symfony application as a middleware (instead of an app)","archived":false,"fork":false,"pushed_at":"2016-02-09T14:53:30.000Z","size":7,"stargazers_count":23,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"1.0","last_synced_at":"2025-06-30T03:09:39.180Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thecodingmachine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-28T14:15:19.000Z","updated_at":"2022-05-12T18:15:47.000Z","dependencies_parsed_at":"2022-07-23T17:25:53.872Z","dependency_job_id":null,"html_url":"https://github.com/thecodingmachine/symfony-middleware","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/thecodingmachine/symfony-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsymfony-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsymfony-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsymfony-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsymfony-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thecodingmachine","download_url":"https://codeload.github.com/thecodingmachine/symfony-middleware/tar.gz/refs/heads/1.0","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thecodingmachine%2Fsymfony-middleware/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263632057,"owners_count":23491530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T11:33:21.316Z","updated_at":"2025-07-04T23:07:30.308Z","avatar_url":"https://github.com/thecodingmachine.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Symfony middleware for StackPHP\n===============================\n\nThis package contains a [StackPHP middleware](http://stackphp.com/) that enables you to push a Symfony\napplication (actually a `Kernel`) directly on the middleware stack.\nThe Symfony application will try to handle requests but instead of sending a 404 response if no route is found, \nthe next middleware on the stack will be called.\n\nInstallation\n------------\n\nThrough [Composer](https://getcomposer.org/) as [mouf/symfony-middleware](https://packagist.org/packages/mouf/symfony-middleware).\n\nUsage\n-----\n\nSimply use the `SymfonyMiddleWare` class in your middleware stack:\n\n```php\nuse Mouf\\StackPhp\\SymfonyMiddleware;\nuse My\\Symfony\\Application;\nuse Stack\\Builder;\n\n$app = ...\n\n$symfonyApplication = new Application(...);\n\n$stack = (new Stack\\Builder())\n    -\u003epush(SymfonyMiddleware::class, $symfonyApplication);\n\n$app = $stack-\u003eresolve($app);\n```\n\nWhy?\n----\n\nWhy would I want to make a Symfony app a middleware?\nBecause if every app becomes a middleware, we can easily chain middlewares together, and therefore, chain many\nframeworks in the same application... and this is cool :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fsymfony-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodingmachine%2Fsymfony-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodingmachine%2Fsymfony-middleware/lists"}