header.jpg
< < Articles

Mix Wordpress and Symfony together

-/-/-

After our recent post "Drupal and Symfony2. Don't wait for Drupal8" which allows you to mix Drupal and Symfony, we released today some other tools to mix Symfony and Wordpress, the most used blog platform.

Sometimes, you have to add custom logic and Wordpress is not really the best tool to do those things so the best way is to do this with a framework and guess what, Symfony is here.

You can now work on Symfony and Wordpress together with two components: a Symfony bundle (that can work alone) and an additional Wordpress plugin that can be installed if you need to go further.

Moreover, with the new release of WordPress 3.8 "Parker" which is now responsive and support all devices, we now have another good reason to give Wordpress some good!

sf-wp[

]4

Symfony part: EkinoWordpressBundle

This is the Symfony bundle to deal with your Wordpress blog. It will give to Symfony the ability to:

  • 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 Wordpress hooks to be dispatched by Symfony EventDispatcher (requires ekino-wordpress-symfony Wordpress plugin).

This bundle (and the installation manual) is available on Github here: https://github.com/ekino/EkinoWordpressBundle

Wordpress part: ekino-wordpress-symfony plugin

This is the Wordpress plugin that adds functionalities like catch Wordpress hooks to be send to Symfony as events via the EventDispatcher component.

Wordpress plugin (and the installation manual) is available on Github here: https://github.com/ekino/ekino-wordpress-symfony

Feel free to contribute!

Source code are available on Ekino's Github account, please feel free to create issues, send us pull requests or help us to improve them in all other ways you can imagine. Also, do not hesitate to contact us if you want more information about them.