PHPackages                             php-pm/drupal-adapter - 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. [Framework](/categories/framework)
4. /
5. php-pm/drupal-adapter

ActiveLibrary[Framework](/categories/framework)

php-pm/drupal-adapter
=====================

441172[7 issues](https://github.com/php-pm/php-pm-drupal/issues)PHP

Since Jun 5Pushed 9y ago8 watchersCompare

[ Source](https://github.com/php-pm/php-pm-drupal)[ Packagist](https://packagist.org/packages/php-pm/drupal-adapter)[ RSS](/packages/php-pm-drupal-adapter/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (9)Used By (0)

PHP-PM DrupalKernel Adapter
===========================

[](#php-pm-drupalkernel-adapter)

Overview
--------

[](#overview)

This is a fork of PHP-PM's HttpKernel adapter for integrating Drupal with PHP-PM (therefore, also with ReactPHP).

The primary components are a bootstrap and bridge.

See:

-
-
-

The code is in alpha -- very experimental. Last tested against `drupal-8.0.2`.

View / report issues at .

### Setup / Usage

[](#setup--usage)

1. Install Drupal.
2. From the Drupal web root, install this project with composer: `composer require php-pm/drupal-adapter`.

This will also install PHP-PM and the default React &lt;-&gt; Symfony bridge (php-pm/httpkernel-adapter).

3. Apply these patches to Drupal core: \* `vendor/kentr/php-pm-drupal-adapter/patches/kentr-allow-repeated-setSitePath-in-DrupalKernel.patch`\* `vendor/kentr/php-pm-drupal-adapter/patches/stop_using-2505339-24.patch`
4. Start php-pm with

```
/vendor/bin/ppm \
start \
 \
--bridge=httpKernel \
--bootstrap=PHPPM\\Bootstraps\\Drupal
```

Example:

```
/var/www/html/vendor/bin/ppm \
start \
/var/www/html/ \
--bridge=httpKernel \
--bootstrap=PHPPM\\Bootstraps\\Drupal
```

DrupalKernel bridge
-------------------

[](#drupalkernel-bridge)

By default, PHP-PM uses the `\PHPPM\Bridges\HttpKernel` bridge to convert a ReactPHP request into a Symfony request and the Symfony response into a ReactPHP response.

The included `\PHPPM\Bridges\DrupalKernel` bridge extends `\PHPPM\Bridges\HttpKernel` to populate various request meta-variables specified by [CGI/1.1 (RFC 3875)](http://www.faqs.org/rfcs/rfc3875.html).

### Setup / Usage

[](#setup--usage-1)

1. Install as described above.
2. Include the environment variables and the `--bridge` option in the php-pm start command.

```
Supported environment variables:
* **SCRIPT_NAME:** '/index.php' to emulate a standard setup where web requests execute Drupal's `index.php` script.
* **SERVER_NAME:** Your site's server / domain name.  If you're using trusted host settings (`$settings['trusted_host_patterns']` in `settings.php`), this must match one of the trusted hosts.
* **SERVER_ADDRESS:** IP address of the server.
* **DOCUMENT_ROOT:** Absolute filepath of the web root directory.

```

Example:

```
SCRIPT_NAME=/index.php \
SERVER_NAME=localhost \
SERVER_ADDRESS=127.0.0.1 \
DOCUMENT_ROOT=/var/www/html \
/var/www/html/vendor/bin/ppm start /var/www/html \
--bridge=PHPPM\\Bridges\\DrupalKernel \
--bootstrap=PHPPM\\Bootstraps\\Drupal
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/974147f78bc18a1b3838b2959678bab84bb15ce12b79ecb638c8444ff05bf3c3?d=identicon)[MArcJ](/maintainers/MArcJ)

![](https://avatars.githubusercontent.com/u/151052?v=4)[Kent Richards](/maintainers/kentr)[@kentr](https://github.com/kentr)

---

Top Contributors

[![andig](https://avatars.githubusercontent.com/u/184815?v=4)](https://github.com/andig "andig (16 commits)")[![kentr](https://avatars.githubusercontent.com/u/151052?v=4)](https://github.com/kentr "kentr (7 commits)")

### Embed Badge

![Health badge](/badges/php-pm-drupal-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/php-pm-drupal-adapter/health.svg)](https://phpackages.com/packages/php-pm-drupal-adapter)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M293](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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