PHPackages                             digitalpolygon/polymer-pantheon-drupal - 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. digitalpolygon/polymer-pantheon-drupal

ActivePolymer-plugin[Utility &amp; Helpers](/categories/utility)

digitalpolygon/polymer-pantheon-drupal
======================================

Helpful scripts and tools for integrating Drupal with Pantheon.

0.x-dev(3w ago)0241[13 issues](https://github.com/digitalpolygon/polymer-pantheon-drupal/issues)GPL-2.0-onlyPHPCI failing

Since Jun 6Pushed 3w ago3 watchersCompare

[ Source](https://github.com/digitalpolygon/polymer-pantheon-drupal)[ Packagist](https://packagist.org/packages/digitalpolygon/polymer-pantheon-drupal)[ RSS](/packages/digitalpolygon-polymer-pantheon-drupal/feed)WikiDiscussions 0.x Synced today

READMEChangelogDependencies (9)Versions (2)Used By (0)

Important

This repository is a **read-only split mirror** of [`packages/pantheon-drupal`](https://github.com/digitalpolygon/polymer-drupal-monorepo/tree/0.x/packages/pantheon-drupal)in the [polymer-drupal-monorepo](https://github.com/digitalpolygon/polymer-drupal-monorepo). Development happens there — please open issues and pull requests against the monorepo.

[![CI](https://github.com/digitalpolygon/polymer-drupal-monorepo/actions/workflows/ci.yml/badge.svg?branch=0.x)](https://github.com/digitalpolygon/polymer-drupal-monorepo/actions/workflows/ci.yml)[![pages-build-deployment](https://github.com/digitalpolygon/polymer-pantheon-drupal/actions/workflows/pages/pages-build-deployment/badge.svg)](https://digitalpolygon.github.io/polymer-pantheon-drupal/latest/)

Polymer for Pantheon Drupal Applications
========================================

[](#polymer-for-pantheon-drupal-applications)

Polymer extension that provides useful integrations for Pantheon Drupal applications.

- Quicksilver hooks
- GitHub Actions workflows
- Drush site file generation

Internal seam: `Hosting/` + `Drupal/`
-------------------------------------

[](#internal-seam-hosting--drupal)

This package is structured so the agnostic Pantheon code can be lifted into a standalone `digitalpolygon/polymer-pantheon` later (when a second CMS — e.g. WordPress — needs it) as a clean move + namespace find-replace. See DESIGN.md §7.

```
src/
├── Hosting/   ← agnostic Pantheon services / value objects / exceptions. The
│                future DigitalPolygon\Polymer\Pantheon\. NO Drupal references.
├── Drupal/    ← glue: listens to polymer-drupal events (via
│                polymer-drupal-contracts) and calls into Hosting/.
├── Plugin/    ← discovered Robo commands / hooks / templates; the seam is
│   │            nested UNDER the fixed discovery roots (see note below):
│   ├── Commands/                 (+ Commands/Hosting, Commands/Drupal)
│   ├── Hooks/Hosting/            agnostic Pantheon hooks (PantheonArtifactHook)
│   └── Template/
│       ├── Hosting/              agnostic config + CI (PantheonYaml,
│       │                         QuicksilverYaml, GitHubWorkflows/…)
│       └── Drupal/               Drupal-coupled (DrushSiteYaml)
├── ExtensionInfo.php
└── PolymerPantheonDrupalServiceProvider.php

```

### The one-way dependency rule

[](#the-one-way-dependency-rule)

**Nothing under `Hosting/` may import Drupal** — not `Drupal\…` (Drupal core), not `DigitalPolygon\Polymer\Drupal\…` (the Drupal contracts), and not the `polymer_drupal` extension namespace. The urge to add such a `use` in `Hosting/`is the signal the code belongs in `Drupal/` instead. This single rule keeps the future `polymer-pantheon` truly CMS-agnostic, and it is enforced in CI (the "Hosting seam" job) across **every** `Hosting/` location — top-level and the ones nested under `Plugin/`.

The `Drupal/` glue is free to depend on both sides: it listens to `polymer-drupal`'s events through `polymer-drupal-contracts` and calls into `Hosting/`.

### Discovery &amp; the nested seam

[](#discovery--the-nested-seam)

Polymer discovers commands, hooks, and templates with a **recursive** scan rooted at the fixed `Plugin\Commands` / `Plugin\Hooks` / `Plugin\Template` namespaces, building each class's FQN from its file path. Because the scan recurses, the seam is expressed by **nesting under** those roots — `Plugin\Template\Hosting\PantheonYaml`is discovered exactly like `Plugin\Template\PantheonYaml` would be. No core change is needed; the fixed discovery roots stay the uniform convention for every plugin.

**Commands are seamed** like everything else (PWT-130): agnostic Terminus and platform-file commands live under `Plugin\Commands\Hosting`(`TerminusCommands`, `PantheonFileCommands`, `NewRelicCommands`), Drupal-coupled commands under `Plugin\Commands\Drupal` (`PantheonDrupalCommands`). The shared Terminus knowledge lives in `Hosting\Terminus\` (`TerminusClient` for the configurable binary, `TerminusPlugins` for plugin ids and the validator selector), and the Pantheon repository/multidev rules in `Hosting\Pantheon\PantheonRepository`. Command names and aliases are unchanged.

###  Health Score

34

↑

LowBetter than 75% of packages

Maintenance94

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.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

Unknown

Total

1

Last Release

27d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/419534?v=4)[Les Peabody](/maintainers/lpeabody)[@lpeabody](https://github.com/lpeabody)

---

Top Contributors

[![lpeabody](https://avatars.githubusercontent.com/u/419534?v=4)](https://github.com/lpeabody "lpeabody (31 commits)")[![gauravgoyal](https://avatars.githubusercontent.com/u/3414191?v=4)](https://github.com/gauravgoyal "gauravgoyal (1 commits)")

---

Tags

polymer-webops

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/digitalpolygon-polymer-pantheon-drupal/health.svg)

```
[![Health](https://phpackages.com/badges/digitalpolygon-polymer-pantheon-drupal/health.svg)](https://phpackages.com/packages/digitalpolygon-polymer-pantheon-drupal)
```

###  Alternatives

[elliottb/phpgraphlib

PHP Graphing Library that creates graphs natively in PHP

9013.1k](/packages/elliottb-phpgraphlib)

PHPackages © 2026

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