cethyworks / content-injector
Library providing a way to simply inject string content into another string.
Installs: 181
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/cethyworks/content-injector
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