victormln/docker-php-nginx

A project template to have PHP 8.1 and nginx

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Dockerfile

Type:template

8.1 2022-05-23 21:52 UTC

This package is auto-updated.

Last update: 2024-04-18 20:02:44 UTC


README

PHP Version

Introduction

Template repository to have PHP + nginx available through a local URL: http://web-server.test

What is in this template

  • PHP-fpm
  • php.ini prepared to be edited by your own
  • Composer
  • Makefile
  • Xdebug
  • Nginx

Installation

  1. From 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

OR with 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. Start web server:
$ make start

Test website: https://web-server.test (you will see all phpinfo())

Now you can edit the file in public/index.php and start coding!