{"id":14452,"date":"2011-08-15T18:10:55","date_gmt":"2011-08-15T18:10:55","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-zend-library\/"},"modified":"2011-08-15T18:10:55","modified_gmt":"2011-08-15T18:10:55","slug":"wp-zend-library","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/wp-zend-library\/","author":8223477,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.2.1","requires":"3.2","requires_php":"","requires_plugins":"","header_name":"WP Zend Library","header_author":"Wild Mice Media","header_description":"","assets_banners_color":"","last_updated":"2011-08-15 18:10:55","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2099,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3002,68065,7338,68066,68064],"plugin_category":[],"plugin_contributors":[94838],"plugin_business_model":[],"class_list":["post-14452","plugin","type-plugin","status-closed","hentry","plugin_tags-framework","plugin_tags-model-view-controller","plugin_tags-mvc","plugin_tags-mvc-framework","plugin_tags-web-application-framework","plugin_contributors-wildmice","plugin_committers-wildmice"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-zend-library.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Use this plugin to integrate the Zend Framework library into Wordpress, making it available for both themes and \nother plugins. It does not include the ZendX extra library.<\/p>\n\n<p>This plugin emulates the Zend Framework bootstrap file, without any application environment (because Wordpress does that), \nand includes a configuration file for setting database connection parameters.<\/p>\n\n<p>Zend Framework is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the \nNew BSD License. It implements a popular application design pattern called model-view-controller (MVC). In this case, \nWordpress becomes the 'view' instead of a Zend Framework application.<\/p>\n\n<p>This plugin will probably work with versions of Wordpress earlier than 3.2, but if you are running such an earlier \nversion check your version of PHP. Zend Framework requires PHP 5.2.4 or later.<\/p>\n\n<p>Note: This is the first version of this plugin and it has not had extensive testing. Consider it experimental and use at \nyour own risk.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>You can use the Zend Framework in both themes and other plugins. \nHere are some simple examples of its use in a theme context.<\/p>\n\n<p>Simple Example 1 - Database Query:<\/p>\n\n<pre><code>&lt;?php\n  if(defined('WP_ZEND_LIBRARY')) {\n\n    \/\/ display Zend version number\n    echo Zend_Version::getLatest();\n\n    if(defined('WP_ZEND_LIBRARY_DB')) {\n\n      \/\/ list Wordpress usernames\n      $results = $db-&gt;query('SELECT * FROM wp_users');\n      while ($row = $results-&gt;fetch()) {\n        echo '&lt;p&gt;'.$row['user_login'].'&lt;\/p&gt;';\n      }\n\n    }\n\n  }\n?&gt;\n<\/code><\/pre>\n\n<p>Simple Example 2 - Pagination:<\/p>\n\n<pre><code>&lt;?php\n  if(defined('WP_ZEND_LIBRARY')) {\n\n    \/\/ Create an array with numbers 1 to 100\n    $data = range(1, 100);\n\n    \/\/ Get a Paginator object using Zend_Paginator's built-in factory.\n    $paginator = Zend_Paginator::factory($data);\n\n    \/\/ Select the second page\n    $paginator-&gt;setCurrentPageNumber(2);\n\n    echo '&lt;ul&gt;';\n\n    \/\/ Render each item for the current page in a list-item\n    foreach ($paginator as $item) {\n        echo '&lt;li&gt;' . $item . '&lt;\/li&gt;';\n    }\n\n    echo '&lt;\/ul&gt;';\n\n  }\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Requires PHP 5.2.4 or later.<\/p>\n\n<p>This plugin requires manual configuration. Do not use the plugin installer.<\/p>\n\n<ol>\n<li>Download the plugin, and extract the files.<\/li>\n<li>Download the Zend Framework Minimal from http:\/\/framework.zend.com\/download\/current\/ and \nunpack the files.<\/li>\n<li>Copy the contents of the folder library\/Zend from the Zend Framework into the plugin's library\/Zend folder.<\/li>\n<li>Edit the plugin's configuration file, then upload the plugin to your plugins folder.<\/li>\n<li>Activate the plugin through the Plugins menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where can I find documentation on the Zend Framework?<\/dt>\n<dd><p>The online manual is at <a href=\"http:\/\/framework.zend.com\/manual\/manual\">Zend Framework Programmer's Reference Guide<\/a><\/p><\/dd>\n<dt>Does this plugin include the ZendX library?<\/dt>\n<dd><p>No. However, if you are looking for jQuery and\/or jQuery UI, these are both natively supported by Wordpress \nand many examples of usage are available through a large user community.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>This is the first version. Consider it a beta release, as it has not had much testing.<\/li>\n<\/ul>","raw_excerpt":"Easy integration of Zend Framework library into Wordpress, making it available for themes and other plugins.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14452"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wildmice"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14452"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14452"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14452"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14452"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14452"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}