fond-of-spryker / file-get-content
n/a
Installs: 7 741
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
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: 2024-12-11 19:28:25 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) }}