【文件属性】:
文件名称:reactjs-php-bundle:使用reactjsreact-php-v8js在服务器端渲染ReactJS组件
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-16 17:20:29
PHP
reactjs-php-bundle
使用在服务器端渲染ReactJS组件
先决条件
安装
composer require qpautrat/reactjs-php-bundle
在要求部分中将以下库列入白名单,直到维护人员在Packagist上发布版本
" reactjs/react-php-v8js " : " *@dev "
在您的AppKernel注册捆绑AppKernel
new QPautrat \ ReactjsPhpBundle \ ReactjsPhpBundle ()
配置
在您的config.yml文件中添加
reactjs_php :
library_path : path_to_reactjs_library
app_path : path_to_app_components
用法
将帮助程序与php引擎一起使用
<?php ec
【文件预览】:
reactjs-php-bundle-master
----.gitignore(64B)
----README.md(1KB)
----composer.json(889B)
----src()
--------Twig()
--------Resources()
--------ReactjsPhpBundle.php(198B)
--------Templating()
--------DependencyInjection()
--------ReactJS.php(455B)