yuriyant / bitrix-router-for-local-development
用于在PHP内置服务器上开发CMS Bitrix项目的路由器。无需为每个项目配置Apache/Nginx。
dev-master
2016-12-11 08:19 UTC
Requires
- php: >=5.3
- yuriyant/bitrix-router-for-local-development: *
This package is not auto-updated.
Last update: 2022-01-17 01:04:20 UTC
README
用于在PHP内置服务器上开发CMS Bitrix项目的路由器。无需为每个项目配置Apache/Nginx。
安装
- 将devrouter.php复制到项目根目录。
- 在项目根目录下,在控制台中运行以下命令
#!bash
php -S localhost:9998 devrouter.php
- 如果PHP未配置为Bitrix,可以使用以下命令运行
#!bash
php -S localhost:9998 -dshort_open_tag=On -ddisplay_errors=On -dmbstring.internal_encoding=UTF-8 -dmbstring.func_overload=2 devrouter.php
- 在浏览器中通过以下链接访问 https://:9998
联系作者
- yuriyant@gmail.com
- yuriyant.com