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);
php include from string include_from_string
php include from string
composer require ebcms/string-include
$code = <<<'STR'
<h1>hello world!</h1>
<?php
echo 123 + 1;
STR;
include \Ebcms\StringInclude::load($code);