cethyworks/content-injector

This package is abandoned and no longer maintained. The author suggests using the https://github.com/Cethy/ContentInjectorBundle package instead.

Library providing a way to simply inject string content into another string.

v1.0 2017-07-06 16:09 UTC

This package is not auto-updated.

Last update: 2017-08-15 00:04:26 UTC


README

Library providing a way to simply inject string content into another string.

CircleCI

Provides

ContentTransformers

TemplateContentTransformer

Simply returns the content of the templateFilename given at construction.

TwigContentTransformer

Use twig to render template given at construction with data.

Injector

SimpleInjector

$injector   = new SimpleInjector($injectBefore);
$newContent = $injector
    ->inject($contentToInject)
    ->to($contentToModify);

Additional information

@see ContentInjectorBundle