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

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

ekino/wordpress-bundle
======================

A Symfony bundle to link Symfony with Wordpress

1.2.3(6y ago)31042.0k75[28 issues](https://github.com/ekino/EkinoWordpressBundle/issues)[3 PRs](https://github.com/ekino/EkinoWordpressBundle/pulls)MITPHPPHP ^5.4|^7.0

Since Jun 28Pushed 4y ago5 watchersCompare

[ Source](https://github.com/ekino/EkinoWordpressBundle)[ Packagist](https://packagist.org/packages/ekino/wordpress-bundle)[ Docs](http://github.com/ekino/EkinoWordpressBundle)[ RSS](/packages/ekino-wordpress-bundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (6)Versions (11)Used By (0)

EkinoWordpressBundle
====================

[](#ekinowordpressbundle)

[![Build Status](https://camo.githubusercontent.com/c86f72621349bcb75af916bd558c28a3d68be83b2a39745e0e9d4680363e0c84/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f656b696e6f2f456b696e6f576f7264707265737342756e646c652e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/ekino/EkinoWordpressBundle) [![SensioLabsInsight](https://camo.githubusercontent.com/1c61e47d7bb9caa25c833ff9f80d4441786d003f7901abd00d4d3349ddc94d49/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65383432646138312d313665322d343765652d393936362d3531313262626531616239632f6d696e692e706e67)](https://insight.sensiolabs.com/projects/e842da81-16e2-47ee-9966-5112bbe1ab9c)

This bundle is used to bring some Symfony services into Wordpress and manipulates Wordpress using Symfony.

Here are some features:

- Use custom Symfony services into Wordpress,
- Use Symfony to manipulate Wordpress database,
- Create custom Symfony routes out of Wordpress,
- When authenticated on Wordpress, authenticated on Symfony too with correct user roles. *(requires ekino-wordpress-symfony Wordpress plugin)*
- Catch some Wordpress hooks to be dispatched by Symfony EventDispatcher *(requires ekino-wordpress-symfony Wordpress plugin)*

---

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

[](#installation)

Idea of this installation tutorial is to have WordPress rendered by web root with the following architecture:

```
project
|-- wordpress (web root)
|-- symfony (not available over HTTP)

```

### 1) Install Symfony and WordPress

[](#1-install-symfony-and-wordpress)

Install your Wordpress project in a `wordpress` directory by unzipping the latest WordPress sources from . Install Symfony using composer (for instance, or new Symfony Installer tool) in a `symfony` directory:

```
$ php composer.phar create-project symfony/framework-standard-edition symfony/

```

### 2) Install ekino/wordpress-bundle into Symfony's project

[](#2-install-ekinowordpress-bundle-into-symfonys-project)

Edit `symfony/composer.json` file to add this bundle package:

```
"require": {
    ...
    "ekino/wordpress-bundle": "dev-master"
},
```

Run `php composer.phar update ekino/wordpress-bundle`

Then, add the bundle into `symfony/app/AppKernel.php`:

```
