create-php-containerdeprecated

Creating a blank vanilla php project with optional LAMP docker container.

Usage no npm install needed!

<script type="module">
  import createPhpContainer from 'https://cdn.skypack.dev/create-php-container';
</script>

README

Create-php-container

Just a simple tool that creates a php setup in a docker LAMP stack.

Prerequisites

This tool has some commands that depend on Docker, so you will need to install that :-)

You can run the same setup without docker if you have a local *AMP server already up and running.

How to use it

  Create-PHP-Container Help

  --help                 See help file (this screen)
  --version, -v          See project version

  cpc create <project>   Create a new project in current folder and start docker setup
  cpc down <project>     Stop and delete container processes with project name
  cpc start <project>    Start containers with project name
  cpc stop <project>     Stop containers with project name
  cpc ps -h              Show all docker processes in horizontal line format
  cpc ps -v              Show all docker processes in column format
  cpc rm <project>       Stop and delete containers and then deletes the project folder after confirmation

  NOTE 1: If you do not choose to run a docker setup you will need to sort out your own php and mysql setup.
  NOTE 2: The only commands that will have any affect with the rogue projects are "create" and "rm"