Last Updated: 2009-03-23 A plugin that simulates the WordPress.org plugin directory, allowing plugin developers to easily showcase their work.
The following functions can be used in your theme's page templates to display your plugins.
function ps_get_plugin($slug, $plugins_dir = '')
Looks for a readme.txt file in $plugins_dir/$slug and parses it if it exists. It then looks for a PHP file containing a header with the same 'Name:' field. Finally it returns a single associative array with the meta data from both the readme.txt and the PHP file.
function ps_get_plugins($plugins_dir = '')
This function goes through all subfolders in the given folder, executes the ps_get_plugin function, and returns all the plugins found in $plugins_dir and their meta data.
There are two sample page templates located in the sample-templates folder once you download and unzip the archive. One is for a simple listing of the plugins and the other is for a view of the plugin details.