Once we have our plugin enabled, you can make calls to ZendFramework 2 classes from any php file

Here are several examples:

Render Contact Form in index.php


A Simple Shortcode


When we use the shortcode [form] the contact form will be rendered, according the zendframework 2 action /application/index/contactform == /yourzf2modulename/controllername/viewname/

You can use WordPress functions from ZendFramework 2


And you can call this piece of code on any wordpress php file following way:


Briefly we introduce more code examples.