fond-of-spryker / file-get-content
n/a
Package info
github.com/fond-of/spryker-file-get-content
pkg:composer/fond-of-spryker/file-get-content
0.1.1
2018-11-23 14:56 UTC
Requires
- php: >=7.1
- spryker/glossary: ^3.0.0
- spryker/kernel: ^3.0.0
Requires (Dev)
- codeception/codeception: ^2.3
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.0
- phpro/grumphp: ^0.14
- sebastian/phpcpd: ^4.0
- spryker/application: ^3.0.0
- spryker/code-sniffer: ^0.11
- spryker/kernel: ^3.0.0
This package is auto-updated.
Last update: 2026-02-11 22:07:52 UTC
README
Simple wrapper for using PHP file_get_contents() in twig. As example needed for inline SVG graphics
Install
composer require fond-of-spryker/discount-widget
Configuration
Register the new provider in your YvesBootstrap
$this->application->register(new FileGetContentServiceProvider());
Using the new fileGetContent function inside TWIG:
{{ fileGetContent(fileUrl) }}