WordPress and Zend Framework Integration with Vulnero

16
Vulnero Introducing a Zend Framework library that allows you develop applications on top of WordPress. By Andrew Kandels

description

Vulnero is a WordPress plugin that transforms WordPress into an object-oriented CMS by implementing a Zend Framework application that interfaces with its API.

Transcript of WordPress and Zend Framework Integration with Vulnero

Page 1: WordPress and Zend Framework Integration with Vulnero

Vulnero

Introducing a Zend Framework library that allows you develop applications on top of

WordPress.

By Andrew Kandels

Page 2: WordPress and Zend Framework Integration with Vulnero

Why They Want WordPress.

Like it or not,When your (boss|client|friend) needs a (blog|website), they’re probably going to ask about WordPress.

Page 3: WordPress and Zend Framework Integration with Vulnero

Why We Want WordPress.

Because it’s documented, has a vast community, and is extendible.

Page 4: WordPress and Zend Framework Integration with Vulnero

It can be difficult.

Plugins typically have …

• Global and procedural functions

• Lots of ugly, deprecated code

• Bias toward simplicity

Page 5: WordPress and Zend Framework Integration with Vulnero

The Benefits of Using a Framework.

• More secure, reliable applications

• APIs to vendors like Google and Amazon

• Supports popular Web 2.0 functionality

• Familiar to other developers

• Benefit from the community

Saves time.

Page 6: WordPress and Zend Framework Integration with Vulnero

What do I need Vulnero for?

require_once ‘Zend/Application/Bootstrap/Bootstrap.php’;

vs

Page 7: WordPress and Zend Framework Integration with Vulnero

Share Common Resources.

Routing Requests

Layouts

Configuration

Caching

Database

Authentication

Add your own routes (/myapp)

Render views in WordPress themes with widgets and menus

Shared configuration

Cache expensive work

Leverage the WordPress MySQL DB

Authentication and access control using WordPress sessions and user records

You don’t have to use the WordPress API to build on WordPress.

Page 8: WordPress and Zend Framework Integration with Vulnero

Add your own routes.

myapp.type = Zend_Controller_Router_Routemyapp.route = myapp/:controller/:actionmyapp.defaults.module = defaultmyapp.defaults.controller = indexmyapp.defaults.action = index

• Application routes take precedence

• Requests that don’t match a route are handled by WordPress

• Matched requests are served through Zend_Application’s controllers

Transparent to users who know controllers, views and routing in the Zend Framework.

Page 9: WordPress and Zend Framework Integration with Vulnero

Shared Layout.

Duplicate Layouts for your Website/App:

• Takes time and effort• Changes mean double the updates• APIs/code needed to shared content

Using the same layout means:

• Lots of themes for WordPress• Take advantage of plugins• Reuse menus and widgets for content

Your WordPress theme works just like Zend_Layout (more transparency).

Page 10: WordPress and Zend Framework Integration with Vulnero

Widgets work like Controllers.

Becomes:

Page 11: WordPress and Zend Framework Integration with Vulnero

Create admin pages the same way.

Becomes:

Page 12: WordPress and Zend Framework Integration with Vulnero

Store key/value pairs.

Page 13: WordPress and Zend Framework Integration with Vulnero

Working with the WordPress API.

Vulnero accesses WordPress functionality through a broker class:

• Responses can be standardized

• More object-oriented

• Additional filters/permissions

Opens the door for other CMS integrations… Drupal? Ick, but maybe.

Page 14: WordPress and Zend Framework Integration with Vulnero

Vulnero can simulate and imitate WordPress.

Responses might be simulated for:

• Unit tests

• Command line scripts

Responses might be imitated for:

• Database migration scripts

• Workers and message queues

• Cronjobs for emails, notifications or background processing

Vulnero can imitate WordPress for bootstrapping the database, caching and stored key/value pairs.

Page 15: WordPress and Zend Framework Integration with Vulnero

It’s open source. Vulnero 1.01 ready for download.

Page 16: WordPress and Zend Framework Integration with Vulnero

Links and Resources.

Project Site:

GitHub:

Me:

http://www.vulnero.com

https://github.com/andrew-kandels/vulnero

Andrew Kandelsakandels [at] gmail.com@andrewkandelshttp://andrewkandels.com