0.0.2 ā€¢ Published 3 years ago

docker-php v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Docker & PHP (for local development)

šŸ‹ A simple PHP environment with Docker for local development.

Requirements

Install

# install docker-php
# (not npm, npx!)
npx docker-php@latest

# start the PHP server on port 3200
# (http://localhost:3200/)
npm run php

About

Will add all the necessary configurations to your npm project for running your PHP code locally:

  • Adds a docker folder with Dockerfile and docker-compose.
  • Adds some useful scripts to your package.json file.
  • Adds /src/index.php (if it does not already exist).

Production