Muti-PHP Docker Environment

bskiefer

bskiefer

Posted on April 1, 2022

Muti-PHP Docker Environment

I've been working on a small utility to handle multiple PHP versions for all of my projects.

https://github.com/phpdocdev/docdev

Features

  • CLI utility (docdev)
  • Pre-built PHP images (5.4, 5.6, 7.2, 7.4, 8.1)
  • Automatic SSL certificates (http and https)
    • docdev certs
  • Automatic host mapping (project1.loc)
    • docdev hosts
  • Shell into a container
    • docdev exec
  • One command to switch between PHP versions
    • docdev php --start 74
  • Testing utility
    • docdev test
  • DNS server: mapping folders to hostnames
  • MailHog
  • Self updating

Test

Help

Tested only on Mac, sorry everyone else :(

💖 💪 🙅 🚩
bskiefer
bskiefer

Posted on April 1, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Muti-PHP Docker Environment
php Muti-PHP Docker Environment

April 1, 2022