PHPackages                             bangpound/drupal-bridge - 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. bangpound/drupal-bridge

Abandoned → [drufony/drupal-bridge](/?search=drufony%2Fdrupal-bridge)Library[Framework](/categories/framework)

bangpound/drupal-bridge
=======================

Symfony Drupal bridge

1.2.0(10y ago)02071MITPHP

Since Nov 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/drufony/drupal-bridge)[ Packagist](https://packagist.org/packages/bangpound/drupal-bridge)[ RSS](/packages/bangpound-drupal-bridge/feed)WikiDiscussions develop Synced 4d ago

READMEChangelogDependencies (3)Versions (6)Used By (1)

Drupal Bridge
=============

[](#drupal-bridge)

Composer
--------

[](#composer)

In your composer.json, define the Drupal root relative to the composer.json file. `drupal-root` is the only option required for the Composer integration.

```
{
    "extra": {
        "drupal-root": "docroot/"
    }
}
```

The Composer integration works well with [`composer/installers`](http://composer.github.io/installers/) but this is not an explicit dependency. When `composer/installers` is available, you can install Drupal modules, themes, profiles and Drush plugins.

The snippet below is an example based on the `composer/installers` documentation and depends on `drupal-root` being set to `docroot/` (as above).

```
{
    "extra": {
        "installer-paths": {
            "docroot/profiles/special/modules/custom/amazing": [
                "somebody/amazing-module"
            ],
            "docroot/profiles/special/": [
                "somebody/special-profile"
            ],
            "docroot/sites/all/modules/{$name}/": [
                "type:drupal-module"
            ],
            "docroot/sites/all/themes/{$name}/": [
                "type:drupal-theme"
            ],
            "docroot/sites/all/libraries/{$name}/": [
                "type:drupal-library"
            ],
            "docroot/profiles/{$name}/": [
                "type:drupal-profile"
            ],
            "docroot/sites/all/drush/{$name}/": [
                "type:drupal-drush"
            ]
        }
    }
}
```

The name of the directory where a profile is installed apparently must be named precisely for the same as its info file.

### Drupal install

[](#drupal-install)

```
{
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "drupal/drupal",
                "version": "7.x-dev",
                "dist": {
                    "type": "tar",
                    "url": "http://ftp.drupal.org/files/projects/drupal-7.x-dev.tar.gz"
                },
                "source": {
                    "type": "git",
                    "url": "git://git.drupal.org/project/drupal.git",
                    "reference": "7.x"
                },
                "bin": [
                    "scripts/drupal.sh",
                    "scripts/password-hash.sh"
                ],
                "require": {
                    "php": ">=5.2.4",
                    "ext-date": "*",
                    "ext-dom": "*",
                    "ext-filter": "*",
                    "ext-gd": "*",
                    "ext-hash": "*",
                    "ext-json": "*",
                    "ext-pcre": "*",
                    "ext-PDO": "*",
                    "ext-session": "*",
                    "ext-SimpleXML": "*",
                    "ext-SPL": "*",
                    "ext-xml": "*"
                }
            }
        }
    ],
    "require": {
        "drupal/drupal": "~7.0@dev",
        "drufony/drupal-bridge": "~1.0@dev"
    },
    "extra": {
        "drupal-install": {
            "symlink": true,
            "relative": true
        }
    },
    "scripts": {
        "create-sites-dir": "Bangpound\\Bridge\\Drupal\\Composer\\ScriptHandler::createSitesDir",
        "post-install-cmd": [
            "Bangpound\\Bridge\\Drupal\\Composer\\ScriptHandler::prepareDrupalRoot"
        ],
        "post-update-cmd": [
            "Bangpound\\Bridge\\Drupal\\Composer\\ScriptHandler::prepareDrupalRoot"
        ]
    }
}
```

When you define `drupal/drupal` as a dependency, the `post-install-cmd` and `post-update-cmd` scripts will (by default) create a relative symlink of the `includes`, `misc`, `modules`, and `themes` directory. The `profiles` directory is left out so that these can be managed by the `composer/installers` plugin for Drupal profile projects.

### Core profiles

[](#core-profiles)

The core profile for `standard` and `minimal` installs can be obtained from the [Drufony](http://drufony.github.io) package repository. Just merge this snippet into your composer.json file. Also configure your `installer-paths` as described above so that the profiles are installed into the Drupal root's `profiles` directory.

```
{
    "repositories": [
        {
            "type": "composer",
            "url": "http://drufony.github.io/packages.json"
        }
    ],
    "require": {
        "drupal/minimal": "7.*@dev",
        "drupal/standard": "7.*@dev"
    }
}
```

### Drush command

[](#drush-command)

```
{
    "require": {
        "drush/drush": "dev-master"
    },
    "scripts": {
        "drush": "Bangpound\\Bridge\\Drupal\\Drush\\Composer\\ScriptHandler::drushCommand"
    }
}
```

```
composer drush updatedb
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 99.2% 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 ~131 days

Total

4

Last Release

3799d ago

### Community

Maintainers

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

---

Top Contributors

[![bangpound](https://avatars.githubusercontent.com/u/6731?v=4)](https://github.com/bangpound "bangpound (129 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

### Embed Badge

![Health badge](/badges/bangpound-drupal-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/bangpound-drupal-bridge/health.svg)](https://phpackages.com/packages/bangpound-drupal-bridge)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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