All Posts programming local development for PHP | ddev cheat-sheet

local development for PHP | ddev cheat-sheet

Β· 133 words Β· 1 minute read

What is ddev ? πŸ”—

Container based local development tool for PHP environments.

Usage πŸ”—

Start up a project:

ddev start

Configure a project’s type and docroot:

ddev config

Follow the log trail:

ddev logs [-f|--follow]

Run composer within the container:

ddev composer

Install a specific Node.js version:

ddev nvm install version

Export a database:

ddev export-db [-f|--file] /tmp/db.sql.gz

Run a specific command within a container:

ddev exec echo 1

For more information, checkout the official documentation: https://ddev.readthedocs.io/en/stable/users/usage/cli/ .

I hope you enjoyed reading this post as much as I enjoyed writing it. If you know a person who can benefit from this information, send them a link of this post. If you want to get notified about new posts, follow me on YouTube , Twitter (x) , LinkedIn , and GitHub .