PHPackages                             jaza/wordpress-integration-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. jaza/wordpress-integration-bundle

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

jaza/wordpress-integration-bundle
=================================

A WordPress integration bundle for Symfony2.

022PHP

Since Jul 1Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Jaza/WordPressIntegrationBundle)[ Packagist](https://packagist.org/packages/jaza/wordpress-integration-bundle)[ RSS](/packages/jaza-wordpress-integration-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Symfony2 WordPress Integration Bundle
=====================================

[](#symfony2-wordpress-integration-bundle)

This bundle lets you render a Symfony2 web app via WordPress.

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

[](#installation)

1 Add to the 'require' section of composer.json:

```
    "require" : {
        "jaza/wordpress-integration-bundle": "1.0.*@dev",
    }

```

2 Register the bundle in `app/AppKernel.php`

```
    $bundles = array(
        // ...
        new Jaza\WordPressIntegrationBundle\JazaWordPressIntegrationBundle(),
    );
```

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

[](#configuration)

1 Add required config values to 'parameters.yml' file (or equivalent):

```
parameters:
    # ...
    wordpress_root: /path/to/wordpress
    wordpress_base_url: 'http://wordpress.baseurl'

```

2 Add various optional config values to 'parameters.yml' file (or equivalent):

```
parameters:
    # ...
    wordpress_is_embedded: true

```

Usage
-----

[](#usage)

Create a controller in your bundle

```
namespace YOURNAME\YOURBUNDLE\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{

    public function indexAction()
    {
        $title = 'Foo hoo';

        // Get the WordPress integration service and bootstrap WordPress
        $wordPressIntegration = $this->container->get('wordpress_integration');
        $wordPressIntegration->bootstrapWordPress();

        // Easily check if the current response will be rendered via
        // WordPress or not - e.g. might have conditional template logic
        // based on this.
        $embedded = $this->container->getParameter('wordpress_is_embedded');

        $engine = $this->container->get('templating');

        // Render the Symfony template output and store it in a variable
        // here, rather than returning the response directly to
        // Symfony as you'd normally do.
        $content = $engine->render('FooBundle:Default:index.html.twig', array(
            'title' => $title,
            'embedded' => $embedded,
        ));

        // Return a Symfony Response object - whether the content in
        // the response is output via WordPress or not depends on the
        // 'wordpress_is_embedded' config value.
        return $wordPressIntegration->getResponse($content);
    }
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/48bacf7c5aaf1df85016b3037d33ee889e8cfb3ec2f3509c3611ac7e2cfd778b?d=identicon)[Jaza](/maintainers/Jaza)

---

Top Contributors

[![Jaza](https://avatars.githubusercontent.com/u/79373?v=4)](https://github.com/Jaza "Jaza (8 commits)")

### Embed Badge

![Health badge](/badges/jaza-wordpress-integration-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/jaza-wordpress-integration-bundle/health.svg)](https://phpackages.com/packages/jaza-wordpress-integration-bundle)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M300](/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)
