victormln / docker-php-nginx
一个项目模板,用于使用PHP 8.1和nginx
8.1
2022-05-23 21:52 UTC
Requires
- php: 8.1
README
简介
此模板仓库提供了通过本地URL访问PHP + nginx的功能:[http://web-server.test](http://web-server.test)(您将看到所有phpinfo()
)
模板中包含的内容
- PHP-fpm
- 已准备好的php.ini,可由您自行编辑
- Composer
- Makefile
- Xdebug
- Nginx
安装
- 通过composer
$ composer create-project victormln/docker-php-nginx your-project
# It will ask you for your sudo password in order to add to your /etc/hosts the domain
或者使用git
$ git clone https://github.com/victormln/docker-php-nginx.git your-project $ cd your-project $ make install # It will ask you for your sudo password in order to add to your /etc/hosts the domain
- 启动Web服务器
$ make start
测试网站:[https://web-server.test](https://web-server.test)(您将看到所有phpinfo()
)
现在您可以在public/index.php
中编辑文件并开始编码!