【文件属性】:
文件名称:Global-Ray:在任何PHP脚本中使用Ray,而无需在项目中使用它
文件大小:405KB
文件格式:ZIP
更新时间:2021-04-06 13:15:30
PHP
全球雷
在任何PHP脚本中都可以使用 ,而无需在项目中使用它。
在Composer中全局需要此软件包:
composer global require cuyz/global-ray
在您PHP配置中修改此指令:
# php.ini
auto_prepend_file=${HOME}/.composer/vendor/cuyz/global-ray/prepend_ray.php
在任何PHP脚本中使用 :
ray ( 'Hello world!' )-> blue ();
建立项目
$ git clone https://github.com/CuyZ/Global-Ray
$ cd Global-Ray
$ composer install --no-dev
$ composer refresh