diggphp / includer
php include from stream wrappers
1.0.2
2023-04-27 03:30 UTC
This package is auto-updated.
Last update: 2024-04-27 05:35:38 UTC
README
一个便捷的include的wrapper封装
安装
composer require diggphp/includer
用例
方式一
<?php $phpcode='hello <?php echo $name;?>'; $name='xiaoming'; include \DiggPHP\Includer\Wrapper::write($phpcode);
方式二
<?php $phpcode='hello <?php echo $name;?>'; \DiggPHP\Includer\Wrapper::load($phpcode, ['name'=>'xiaoming']);