DEV Community

Cover image for Muti-PHP Docker Environment
bskiefer
bskiefer

Posted on

5 2

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 :(

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay