jmf / twig-inline
Twig extension for inlining files in Twig templates.
1.0.1
2026-05-31 00:37 UTC
Requires
- php: ^8.3
- twig/twig: ^3.0
Requires (Dev)
- overtrue/phplint: ^9
- phpstan/phpstan: ^2
- phpstan/phpstan-strict-rules: ^2
- phpunit/phpunit: ^12|^13
- rector/rector: ^2
- squizlabs/php_codesniffer: ^4
README
Installation & Requirements
Install with Composer:
composer require jmf/twig-inline
Configuration
A base path must be defined in order to locate inlinable files, and prevent inlining of unwanted files.
Usage in Twig templates
inline() function
<style>{{ inline('style.css') }}</style>