PHPackages                             craychee/rootcanal - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. craychee/rootcanal

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

craychee/rootcanal
==================

Workflow manager to build a Drupal7 root with composer

v1.0.0(10y ago)16.0k4[2 PRs](https://github.com/craychee/rootcanal/pulls)PHP

Since Jun 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/craychee/rootcanal)[ Packagist](https://packagist.org/packages/craychee/rootcanal)[ RSS](/packages/craychee-rootcanal/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (5)Used By (0)

Drupal RootCanal
================

[](#drupal-rootcanal)

[![Build Status](https://camo.githubusercontent.com/0e9f3ed088fa74c45e8fa0c1354661d6d8dadb614d72f24c0c59c0010d03f667/68747470733a2f2f7472617669732d63692e6f72672f63726179636865652f726f6f7463616e616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/craychee/rootcanal)

This library canals a composer vendor directory and a project's custom files and directories into a Drupal(7) webroot. The webroot is assembled either by symlinking custom directories and contrib modules into the Drupal root (recommended for development) or copying all files into the webroot and removing specified files and directories (recommended for production).

\##Usage

The drupal:canal command specifications:

```
bin/rootcanal

```

Will run generate a drupal root directory inside a `www` directory using your composer installation and custom files and directories that are in your project's root.

You can override the default name of the destination path with:

```
bin/rootcanal --destination=docroot

```

You can override the default source path of your custom directories and files with:

```
bin/rootcanal --source=my_custom_dir

```

By default, modules, themes, and custom directories will be symlinked into a Drupal root. You can instead copy all files and directories with:

```
bin/rootcanal --prod

```

\##Libraries Currently, this solution does not elegantly accommodate libraries. You can see an example of how to work around this [here](https://gist.github.com/craychee/950136f52edefab3f839). The next release, currently in dev, will resolve this by allowing for configuration, such as libraries, to be passed in with a yml config file.

\##Credits This library is a reworking of [drupal/tangler](https://github.com/winmillwill/drupal-tangler) to accommodate the abstraction of configuration, the ability to generate a production artifact, and to make it more testable. All glory belongs to [winmillwill](https://github.com/winmillwill).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~39 days

Total

3

Last Release

3909d ago

Major Versions

v0.1.1 → v1.0.02015-09-04

### Community

Maintainers

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

---

Top Contributors

[![craychee](https://avatars.githubusercontent.com/u/1851632?v=4)](https://github.com/craychee "craychee (8 commits)")[![mathewpeterson](https://avatars.githubusercontent.com/u/203190?v=4)](https://github.com/mathewpeterson "mathewpeterson (1 commits)")

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/craychee-rootcanal/health.svg)

```
[![Health](https://phpackages.com/badges/craychee-rootcanal/health.svg)](https://phpackages.com/packages/craychee-rootcanal)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.2M122](/packages/ramsey-conventional-commits)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)

PHPackages © 2026

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