{"id":20768082,"url":"https://github.com/basster/legacy-bridge-bundle","last_synced_at":"2025-04-30T11:23:44.542Z","repository":{"id":62492186,"uuid":"62213349","full_name":"Basster/legacy-bridge-bundle","owner":"Basster","description":"Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application","archived":false,"fork":false,"pushed_at":"2019-06-21T18:45:55.000Z","size":16,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T15:47:02.288Z","etag":null,"topics":["legacy","php","symfony"],"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/Basster.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":"2016-06-29T09:26:26.000Z","updated_at":"2022-01-10T03:21:28.000Z","dependencies_parsed_at":"2022-11-02T09:31:16.985Z","dependency_job_id":null,"html_url":"https://github.com/Basster/legacy-bridge-bundle","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basster%2Flegacy-bridge-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basster%2Flegacy-bridge-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basster%2Flegacy-bridge-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Basster%2Flegacy-bridge-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Basster","download_url":"https://codeload.github.com/Basster/legacy-bridge-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251689339,"owners_count":21627889,"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":["legacy","php","symfony"],"created_at":"2024-11-17T11:35:24.936Z","updated_at":"2025-04-30T11:23:44.514Z","avatar_url":"https://github.com/Basster.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"BassterLegacyBridgeBundle\n=========================\n\n[![Build Status](https://travis-ci.org/Basster/legacy-bridge-bundle.svg?branch=master)](https://travis-ci.org/Basster/legacy-bridge-bundle)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Basster/legacy-bridge-bundle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Basster/legacy-bridge-bundle/?branch=master)\n[![Code Coverage](https://scrutinizer-ci.com/g/Basster/legacy-bridge-bundle/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Basster/legacy-bridge-bundle/?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/8a657229-69dc-4244-9669-dfcea4b32f59/mini.png)](https://insight.sensiolabs.com/projects/8a657229-69dc-4244-9669-dfcea4b32f59)\n\nWhat is this?\n-------------\n\nThis bundle generates a symfony route from each .php file on the given `legacy_path` folder, so you can access your old scripts through the symfony frontcontroller as they where actually present.\nAdditionally the wrapper injects the symfony DI-Container into `$_SERVER['SYMFONY_CONTAINER']`, so you can slowly refactor the legacy app, by extracting services into symfony services but\nuse them in the legacy code, as well.\n\nInspired from [Modernizing with Symfony](https://slidr.io/derrabus/modernizing-with-symfony) given by [@derrabus](https://twitter.com/derrabus) \n\nInstallation\n------------\n\n    composer require basster/legacy-bridge-bundle\n\nConfiguration\n-------------\nIn your config.yml place:\n\n    basster_legacy_bridge:\n        legacy_path:    '/full/path/to/my/legacy/project/files'\n        # optional prepend script (see http://php.net/manual/en/ini.core.php#ini.auto-prepend-file)\n        prepend_script: '/full/path/to/my/legacy/autoPrependFile.php' # can be ommited\n        # optional append script (see http://php.net/manual/en/ini.core.php#ini.auto-append-file)\n        append_script:  '/full/path/to/my/legacy/autoAppendFile.php' # can be ommited\n\nOn the legacy app\n-----------------\n\n    \u003c?php // e.g. my-old-stuff.php\n    /** @var \\Symfony\\Component\\DependencyInjection\\ContainerInterface $container */\n    $container = $_SERVER['SYMFONY_CONTAINER'];\n    $myService = $container-\u003eget('my.service.id');\n\nLicense\n-------\n\nThis bundle is under the MIT license. See the complete license in the bundle:\n\n    Resources/meta/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasster%2Flegacy-bridge-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasster%2Flegacy-bridge-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasster%2Flegacy-bridge-bundle/lists"}