ebcms/string-include

php include from string include_from_string


License
MIT

Documentation

string-include

php include from string

Installation

composer require ebcms/string-include

Usage

$code = <<<'STR'
<h1>hello world!</h1>
<?php
echo 123 + 1;
STR;

include \Ebcms\StringInclude::load($code);