PHPackages                             oh17l/draft-environment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. oh17l/draft-environment

AbandonedArchivedVm[DevOps &amp; Deployment](/categories/devops)

oh17l/draft-environment
=======================

Development environment for Draft Drupal.

2.6.6(7y ago)02.1k1GPL-2.0-or-laterRuby

Since Feb 13Pushed 7y agoCompare

[ Source](https://github.com/OH17L/draft-environment)[ Packagist](https://packagist.org/packages/oh17l/draft-environment)[ RSS](/packages/oh17l-draft-environment/feed)WikiDiscussions 2.x.x Synced 3d ago

READMEChangelogDependencies (1)Versions (29)Used By (1)

Draft Environment
=================

[](#draft-environment)

[![Build Status](https://camo.githubusercontent.com/e49c2afe26d89bd1dac6a1829954ad6b22848da9c1077a199de52110e27b0223/68747470733a2f2f7472617669732d63692e6f72672f6c656d626572672f64726166742d656e7669726f6e6d656e742e7376673f6272616e63683d322e352e30)](https://travis-ci.org/lemberg/draft-environment)

This is Vagrant-based development environment for Drupal projects. This project is a part of a [Draft](https://github.com/lemberg/draft-template) Drupal project template.

Prerequisites
-------------

[](#prerequisites)

- PHP/Composer

### Docker

[](#docker)

- Docker
- docker-compose

### Vagrant

[](#vagrant)

- Vagrant
- VirtualBox

Vagrant plugins (will be automatically installed)
-------------------------------------------------

[](#vagrant-plugins-will-be-automatically-installed)

#### Vagrant Host Manager

[](#vagrant-host-manager)

Manages host and/or guest `hosts` files. Draft is configured to create a `hostname.test` DNS record on a host machine.

#### vagrant-vbguest

[](#vagrant-vbguest)

Automatically installs the host's VirtualBox Guest Additions on the guest system.

#### Vagrant WinNFSd (WINDOWS only)

[](#vagrant-winnfsd-windows-only)

Dramatically increases disk IO on Windows by adding NFS support.

How to
------

[](#how-to)

1. Add `post-install-cmd` and `post-update-cmd` events handler `Lemberg\\Draft\\Environment\\Configurer::setUp` to the `scripts` property of the root `composer.json` file. Resulting file might look like this:

    ```
    "scripts": {
        "post-install-cmd": [
            "Lemberg\\Draft\\Environment\\Configurer::setUp"
        ],
        "post-update-cmd": [
            "Lemberg\\Draft\\Environment\\Configurer::setUp"
        ]
    },
    ```
2. Add Draft to the project (as a dev dependency):

    ```
    $ composer require --dev lemberg/draft-environment

    ```
3. Configure guest machine by answering installer's questions. At the moment, project name (hostname) is the only setting that can be set interactively. More to come. Adjust other settings by editing `vm-settings.yml` manually
4. Create and configure guest machine:

    ```
    $ docker-compose up -d

    ```

    or

    ```
    $ vagrant up

    ```
5. Override any variable used in any Ansible role by including it in the `vm-settings.yml`. For details see [default.vm-settings.yml](/default.vm-settings.yml)

    Here's the list of used roles and available variables (and their default values):

    - [draft (internal)](/provisioning/playbooks/roles/draft/defaults/main.yml)
    - [kamaln7.swapfile](https://github.com/kamaln7/ansible-swapfile/blob/master/defaults/main.yml)
    - [geerlingguy.mailhog](https://github.com/geerlingguy/ansible-role-mailhog/blob/2.1.3/defaults/main.yml)
    - git\_config (internal)
    - [apache2 (internal)](/provisioning/playbooks/roles/apache2/defaults/main.yml)
    - mysql (internal)
    - [T2L.php](https://github.com/T2L/ansible-role-php/blob/1.1.1/defaults/main.yml)
    - [T2L.composer](https://github.com/T2L/ansible-role-composer/blob/2.0.2/defaults/main.yml)
    - [T2L.java](https://github.com/T2L/ansible-role-java/blob/1.0.1/defaults/main.yml)
    - [T2L.solr](https://github.com/T2L/ansible-role-solr/blob/1.2.0/defaults/main.yml)

    Some of those variables are already overridden. Find them [here](/provisioning/playbooks/vars).
6. Commit `Vagrantfile` and `vm-settings.yml` to lock the VM state
7. File `vm-settings.yml` is project-specific, not a machine specific. Configuration can be overridden in `vm-settings.local.yml` (and this file must not be committed)
8. Run `vagrant ssh`. Project is located in `/var/www/draft` by default (see [default.vm-settings.yml](/default.vm-settings.yml#L23))

Documentation
-------------

[](#documentation)

Everybody loves documentation. We do too! [Check this out](/docs).

Changelog
---------

[](#changelog)

Changelog can be found here [CHANGELOG.md](/CHANGELOG.md)

Upgrade
-------

[](#upgrade)

Upgrade instructions can be found here [UPGRADE.md](/UPGRADE.md)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 92.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~0 days

Total

28

Last Release

2822d ago

Major Versions

1.x-dev → 2.0.02017-10-11

2.6.0 → 3.x-dev2018-08-09

### Community

Maintainers

![](https://www.gravatar.com/avatar/ffb46d557a74875979b13ea66b68725de362aaf6dad787c5cc7d1fe30dedc852?d=identicon)[oh17l](/maintainers/oh17l)

---

Top Contributors

[![T2L](https://avatars.githubusercontent.com/u/492138?v=4)](https://github.com/T2L "T2L (187 commits)")[![ohorbatiuk](https://avatars.githubusercontent.com/u/11755359?v=4)](https://github.com/ohorbatiuk "ohorbatiuk (11 commits)")[![andrii-khomych-lemberg-co-uk](https://avatars.githubusercontent.com/u/24794729?v=4)](https://github.com/andrii-khomych-lemberg-co-uk "andrii-khomych-lemberg-co-uk (4 commits)")

---

Tags

transferred

### Embed Badge

![Health badge](/badges/oh17l-draft-environment/health.svg)

```
[![Health](https://phpackages.com/badges/oh17l-draft-environment/health.svg)](https://phpackages.com/packages/oh17l-draft-environment)
```

###  Alternatives

[wsdltophp/packagegenerator

Generate hierarchical PHP classes based on a WSDL

4351.9M19](/packages/wsdltophp-packagegenerator)[in2code/in2publish_core

Content publishing extension to connect stage and production server

40135.8k](/packages/in2code-in2publish-core)[shopware/deployment-helper

Shopware deployment tools

19305.3k5](/packages/shopware-deployment-helper)[phpfastcgi/speedfony-bundle

A bundle to integrate a FastCGI daemon with the symfony2 framework

909.5k](/packages/phpfastcgi-speedfony-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
