2017 © Pedro PelĂĄez
 

symfony-bundle legacy-bridge-bundle

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

image

basster/legacy-bridge-bundle

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  • Thursday, July 12, 2018
  • by Basster
  • Repository
  • 1 Watchers
  • 5 Stars
  • 373 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 7 Versions
  • 106 % Grown

The README.md

BassterLegacyBridgeBundle

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight, (*1)

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., (*2)

Inspired from Modernizing with Symfony given by @derrabus, (*3)

Installation

composer require basster/legacy-bridge-bundle

Configuration

In your config.yml place:, (*4)

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 ommited

On the legacy app

<?php // e.g. my-old-stuff.php
/** @var \Symfony\Component\DependencyInjection\ContainerInterface $container */
$container = $_SERVER['SYMFONY_CONTAINER'];
$myService = $container->get('my.service.id');

License

This bundle is under the MIT license. See the complete license in the bundle:, (*5)

Resources/meta/LICENSE

The Versions

12/07 2018

dev-master

9999999-dev

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ole RĂ¶ĂŸner

12/07 2018

1.0.3

1.0.3.0

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ole RĂ¶ĂŸner

12/07 2018

dev-feature/ignore-invalid-paths

dev-feature/ignore-invalid-paths

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ole RĂ¶ĂŸner

07/07 2018

1.0.2

1.0.2.0

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ole RĂ¶ĂŸner

02/12 2016

dev-feature/own-phpunit-dep

dev-feature/own-phpunit-dep

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ole RĂ¶ĂŸner

29/06 2016

1.0.1

1.0.1.0

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

  • mikey179/vfsstream ^1.6

by Ole RĂ¶ĂŸner

29/06 2016

1.0

1.0.0.0

Bridge Bundle for wrapping legacy php projects (e.g. without frontcontrollers) into a symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

  • mikey179/vfsstream ^1.6

by Ole RĂ¶ĂŸner