{"id":14965605,"url":"https://github.com/o2ps/slimnettebridge","last_synced_at":"2025-10-25T12:30:22.235Z","repository":{"id":57031932,"uuid":"95567374","full_name":"o2ps/SlimNetteBridge","owner":"o2ps","description":"Slim Framework bridge for Nette DI","archived":false,"fork":false,"pushed_at":"2020-10-25T13:44:23.000Z","size":20,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T07:05:29.580Z","etag":null,"topics":["nette-framework","slim-framework","slim3"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/o2ps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-27T14:29:30.000Z","updated_at":"2020-10-25T13:44:25.000Z","dependencies_parsed_at":"2022-08-23T20:50:15.231Z","dependency_job_id":null,"html_url":"https://github.com/o2ps/SlimNetteBridge","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o2ps%2FSlimNetteBridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o2ps%2FSlimNetteBridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o2ps%2FSlimNetteBridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/o2ps%2FSlimNetteBridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/o2ps","download_url":"https://codeload.github.com/o2ps/SlimNetteBridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238137821,"owners_count":19422703,"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":["nette-framework","slim-framework","slim3"],"created_at":"2024-09-24T13:34:58.515Z","updated_at":"2025-10-25T12:30:21.920Z","avatar_url":"https://github.com/o2ps.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oops/SlimNetteBridge\n\n[![Build Status](https://img.shields.io/travis/o2ps/SlimNetteBridge.svg)](https://travis-ci.org/o2ps/SlimNetteBridge)\n[![Downloads this Month](https://img.shields.io/packagist/dm/oops/slim-nette-bridge.svg)](https://packagist.org/packages/oops/slim-nette-bridge)\n[![Latest stable](https://img.shields.io/packagist/v/oops/slim-nette-bridge.svg)](https://packagist.org/packages/oops/slim-nette-bridge)\n\nThis package helps you quickly build a [Slim Framework](https://www.slimframework.com) application, utilizing the power of [Nette DI container](https://github.com/nette/di). \n\n\n## THIS PACKAGE IS NO LONGER MAINTAINED!\n\nAs suggested in [#6](https://github.com/o2ps/SlimNetteBridge/issues/6), you can use [slimapi/slimapi](https://github.com/slimapi/slimapi) instead.\n\n\n## Installation and requirements\n\n```bash\n$ composer require oops/slim-nette-bridge\n```\n\nOops/SlimNetteBridge requires PHP \u003e= 7.1.\n\n\n## Usage\n\nRegister the extension in your config file.\n\n```yaml\nextensions:\n    slim: Oops\\SlimNetteBridge\\DI\\SlimExtension(%debugMode%)\n```\n\nThen configure it:\n\n```yaml\nslim:\n    settings:\n        addContentLengthHeader: false\n    configurators:\n        - App\\MyConfigurator\n```\n\n- `settings` section can be used to override Slim's [default settings](https://www.slimframework.com/docs/objects/application.html#slim-default-settings);\n- `configurators` is a list of `ApplicationConfigurator` implementations which, in the same order as defined in the list, can add routes and middlewares to the instance of `Slim\\App`.\n\nOnce you have configured the bridge, you can create a simple `index.php` script in your document root, using [`nette/bootstrap`](https://github.com/nette/bootstrap) to build the container:\n\n```php\n\u003c?php\n\n// include Composer autoloader\nrequire_once __DIR__ . '/path/to/vendor/autoload.php';\n\n// configure and create the DI container\n$configurator = new Nette\\Configurator();\n$configurator-\u003esetTempDirectory(__DIR__ . '/path/to/temp');\n$configurator-\u003eaddConfig(__DIR__ . '/path/to/config.neon');\n$container = $configurator-\u003ecreateContainer();\n\n// run the configured Slim application\n$container-\u003egetByType(Slim\\App::class)-\u003erun();\n```\n\nDon't forget to configure your web server to pass the incoming requests to the `index.php` script.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo2ps%2Fslimnettebridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fo2ps%2Fslimnettebridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fo2ps%2Fslimnettebridge/lists"}