Download and install docker desktop.
Verify by running:
docker -v
Just run
docker compose up
Verify by testing: localhost/index.php
Now you can edit your code in /code folder, and observe the results right away in the browser.
To run mysql shell run:
docker compose exec mysql mysql
You can access mysql from php:
host: mysql
port: 3306
user: root
pass:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Apache License# php-basic-docker