PHPackages                             thedrum-developers/the-drum-dfp-bundle - 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. thedrum-developers/the-drum-dfp-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

thedrum-developers/the-drum-dfp-bundle
======================================

Symfony DFP Bundle

0611PHP

Since Dec 5Pushed 3y ago3 watchersCompare

[ Source](https://github.com/thedrum-developers/the-drum-dfp-bundle)[ Packagist](https://packagist.org/packages/thedrum-developers/the-drum-dfp-bundle)[ RSS](/packages/thedrum-developers-the-drum-dfp-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (8)Used By (0)

The Drum DFP Bundle
===================

[](#the-drum-dfp-bundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/2edf84c338338ce5ff80d95bff79af67659735872b08c4345ad98e4d8bd86f84/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61643436386232662d616666622d343963622d396235302d3031643466653233313139342f6d696e692e706e67)](https://insight.sensiolabs.com/projects/ad468b2f-affb-49cb-9b50-01d4fe231194)

---

Adds support for configuring and rendering DFP ad units in a Symfony project

Installation
------------

[](#installation)

#### Install the bundle

[](#install-the-bundle)

```
composer require thedrum-developers/the-drum-dfp-bundle dev-master

```

#### Install the assets

[](#install-the-assets)

```
bin/console assets:install --symlink

```

Configuration
-------------

[](#configuration)

#### Add the appropriate configuration for your ads i.e.

[](#add-the-appropriate-configuration-for-your-ads-ie)

```
the_drum_dfp:
    network_id: **NETWORK_ID**
    domain: **DOMAIN NAME**
    positions:
        mpu_dh_1:
            screen_sizes: []
            ad_sizes: [[300, 600], [300,250]]
            dom_name: DFP_mpu_dh_1
            slot_name: **DFP_AD_MPU_SLOTNAME**
            position_name: mpu_dh_1
        leaderboard_header:
            screen_sizes: [[0,0], [728,90]]
            ad_sizes: [[], [728, 90]]
            dom_name: **DFP_AD_LEADERBOARD_SLOT_NAME**
            slot_name: CAMPAIGN1_728x90
            position_name: leaderboard_header

```

#### Add ad placeholder divs into the markup

[](#add-ad-placeholder-divs-into-the-markup)

i.e. ``

#### Include the following before the closing tag

[](#include-the-following-before-the-closing--tag)

```
{{ the_drum_dfp_render() }}

```

#### Activate Ads

[](#activate-ads)

Set `the_drum_dfp.active` is set to `true` in `app/config/parameters.yml`

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

Reporting an issue or a feature request
---------------------------------------

[](#reporting-an-issue-or-a-feature-request)

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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://avatars.githubusercontent.com/u/1922601?v=4)[Chris Shennan](/maintainers/chrisshennan)[@chrisshennan](https://github.com/chrisshennan)

![](https://avatars.githubusercontent.com/u/7834239?v=4)[The Drum Communications, Inc.](/maintainers/thedrum)[@thedrum](https://github.com/thedrum)

![](https://avatars.githubusercontent.com/u/3837345?v=4)[Anthony Tetlow](/maintainers/anthonyptetlow)[@anthonyptetlow](https://github.com/anthonyptetlow)

---

Top Contributors

[![anthonyptetlow](https://avatars.githubusercontent.com/u/3837345?v=4)](https://github.com/anthonyptetlow "anthonyptetlow (1 commits)")[![chrisshennan](https://avatars.githubusercontent.com/u/1922601?v=4)](https://github.com/chrisshennan "chrisshennan (1 commits)")

---

Tags

dfpdoubleclick-for-publisherssymfony

### Embed Badge

![Health badge](/badges/thedrum-developers-the-drum-dfp-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/thedrum-developers-the-drum-dfp-bundle/health.svg)](https://phpackages.com/packages/thedrum-developers-the-drum-dfp-bundle)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M836](/packages/laravel-socialite)[laravel/dusk

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

1.9k38.6M289](/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)
