Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/basster/legacy-bridge-bundle
Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application
https://github.com/basster/legacy-bridge-bundle
legacy php symfony
Last synced: 3 months ago
JSON representation
Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application
- Host: GitHub
- URL: https://github.com/basster/legacy-bridge-bundle
- Owner: Basster
- Created: 2016-06-29T09:26:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-21T18:45:55.000Z (over 5 years ago)
- Last Synced: 2023-08-21T08:09:57.528Z (over 1 year ago)
- Topics: legacy, php, symfony
- Language: PHP
- Size: 15.6 KB
- Stars: 7
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
BassterLegacyBridgeBundle
=========================[![Build Status](https://travis-ci.org/Basster/legacy-bridge-bundle.svg?branch=master)](https://travis-ci.org/Basster/legacy-bridge-bundle)
[![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)
[![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)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/8a657229-69dc-4244-9669-dfcea4b32f59/mini.png)](https://insight.sensiolabs.com/projects/8a657229-69dc-4244-9669-dfcea4b32f59)What is this?
-------------This 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.
Additionally 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
use them in the legacy code, as well.Inspired from [Modernizing with Symfony](https://slidr.io/derrabus/modernizing-with-symfony) given by [@derrabus](https://twitter.com/derrabus)
Installation
------------composer require basster/legacy-bridge-bundle
Configuration
-------------
In your config.yml place:basster_legacy_bridge:
legacy_path: '/full/path/to/my/legacy/project/files'
# optional prepend script (see http://php.net/manual/en/ini.core.php#ini.auto-prepend-file)
prepend_script: '/full/path/to/my/legacy/autoPrependFile.php' # can be ommited
# optional append script (see http://php.net/manual/en/ini.core.php#ini.auto-append-file)
append_script: '/full/path/to/my/legacy/autoAppendFile.php' # can be ommitedOn the legacy app
-----------------get('my.service.id');
License
-------This bundle is under the MIT license. See the complete license in the bundle:
Resources/meta/LICENSE