Download the PHP package wiryonolau/zend-wordpress without Composer
On this page you can find all versions of the php package wiryonolau/zend-wordpress. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wiryonolau/zend-wordpress
More information about wiryonolau/zend-wordpress
Files in wiryonolau/zend-wordpress
Package zend-wordpress
Short Description Wordpress Base Plugin using Zend Framework 3
License GPL-2.0-or-later
Homepage https://github.com/wiryonolau/zend-wordpress
Informations about the package zend-wordpress
ZendWordpress
Library to create wordpress plugin using Zend Framework 3 MVC Application Fork from zendmaniacs/zf-to-wp, make it availiable as composer
Installation
Using Composer
Usage
your-plugin-file.php
config/application.config.php
module Zend\Navigation, Zend\Router, Zend\Session already included
config/router.config.php
Using UrlHelper on view
Since all url in admin are translated to a query "admin.php?page=" when assembling route, passing "query" options to url helper will break the url due to TreeRouteStack injecting query options after assembling route. You must pass everything as parameters, which then will be converted to query by WpAdminRoute.
You could define your own TreeRouteStack if neccessary and pass it to array("router" => array("router_class" => ""))
Limitation
- wpAdminRoute does not support child_routes at the moment. If you add child_routes it will thrown an exception.
- Wordpress navigation menu only support single nested level navigation.
All versions of zend-wordpress with dependencies
zendframework/zend-mvc Version ^3.1
zendframework/zend-session Version ^2.9
zendframework/zend-navigation Version ^2.9
zendframework/zend-debug Version ^2.6