victormln/docker-php-nginx

一个项目模板,用于使用PHP 8.1和nginx

安装: 4

依赖: 0

建议者: 0

安全: 0

星星: 0

关注者: 1

分支: 0

开放问题: 0

语言:Dockerfile

类型:模板

8.1 2022-05-23 21:52 UTC

This package is auto-updated.

Last update: 2024-09-18 20:48:57 UTC


README

PHP Version

简介

此模板仓库提供了通过本地URL访问PHP + nginx的功能:[http://web-server.test](http://web-server.test)(您将看到所有phpinfo()

模板中包含的内容

  • PHP-fpm
  • 已准备好的php.ini,可由您自行编辑
  • Composer
  • Makefile
  • Xdebug
  • Nginx

安装

  1. 通过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
  1. 启动Web服务器
$ make start

测试网站:[https://web-server.test](https://web-server.test)(您将看到所有phpinfo()

现在您可以在public/index.php中编辑文件并开始编码!