---
title: WordPress Development Environment as a Composer Dependancy
date: 2018-09-21T18:15:46+00:00
modified: 2018-09-24T14:56:44+00:00
permalink: https://kaspars.net/blog/wordpress-environment-composer
post_type: post
author:
  name: Kaspars
  avatar: https://reverse.kaspars.net/gravatar/avatar/92bfcd3a8c3a21a033a6484d32c25a40b113ec6891f674336081513d5c98ef76?s=96&d=mm&r=g
category:
  - WordPress
---

# WordPress Development Environment as a Composer Dependancy

Wouldn’t it be awesome to have a virtual WordPress development environment added to any plugin or theme as a Composer dependancy? Today I discovered the [Drupal VM](https://www.drupalvm.com/) project [which enables exactly that](http://docs.drupalvm.com/en/latest/deployment/composer-dependency/).

It should be relatively easy to add this kind of support for both [VVV](https://github.com/Varying-Vagrant-Vagrants/VVV) and [Chassis](https://github.com/Chassis/Chassis) — it only has to sync the `VAGRANT_OLD_ENV_PWD` directory to a theme or plugin directory within the WP install.

## Update

I’ve started working [on adding Composer and npm support to Chassis](https://github.com/Chassis/Chassis/pull/583).