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
Requires
- php: >=5.6.17
Requires (Dev)
- phpunit/phpunit: ^4.8
- twig/twig: ^1.0||^2.0
Suggests
- twig/twig: ^1.0||^2.0
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.
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