lemberg/draft-environment
最新稳定版本:3.6.4
Composer 安装命令:
composer require lemberg/draft-environment
包简介
Development environment for Draft Drupal.
README 文档
README
This is Vagrant-based development environment for Drupal projects. This project is a part of a Draft Drupal project template.
Prerequisites
- PHP (7.4+) and Composer 2
- Vagrant (2.2.6+)
- VirtualBox (5.2+)
- mkcert (optional)
Vagrant plugins (will be automatically installed)
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-disksize
A Vagrant plugin to resize disks in VirtualBox.
Vagrant WinNFSd (WINDOWS only)
Dramatically increases disk IO on Windows by adding NFS support.
How to
-
(Optional) Locally-trusted SSL certificates
Skip this step if
mkcertis already installed and the local CA does already exist.Install mkcert in order to get locally-trusted development SSL certificates. This tool requires no configuration. After installation just run:
$ mkcert -install -
Add Draft Environment to the project (as a dev dependency):
$ composer require --dev lemberg/draft-environment -
Configure guest machine by answering installer's questions. At the moment, project name (hostname) and PHP version are the only settings that can be set interactively
-
Override any variable used in any Ansible role by manually editing the
vm-settings.yml. All available variables alongside with their default values are listed in default.vm-settings.ymlHere's the list of used roles:
- draft (internal)
- oefenweb.swapfile @ v2.0.35
- geerlingguy.mailhog @ 2.3.0
- git_config (internal)
- apache2 (internal)
- geerlingguy.mysql @ 3.5.0
- t2l.php @ 1.6.2
- t2l.composer @ 2.0.5
- t2l.java @ 1.3.3
- t2l.solr @ 2.2.2
-
Create and provision the guest machine:
$ vagrant up -
Commit
.gitignore,Vagrantfileandvm-settings.ymlto lock the VM state -
Configuration can be overridden locally by creating and editing
vm-settings.local.yml(and this file must not be committed)
Documentation
Everybody loves documentation. We do too! Check this out.
Changelog
Changelog can be found here CHANGELOG.md
lemberg/draft-environment 适用场景与选型建议
lemberg/draft-environment 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 206.46k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 lemberg/draft-environment 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lemberg/draft-environment 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 206.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 21
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-01-04