This package provides a simple frontend to a PEAR channel by directly using the PEAR channel files.
To use, place the PEAR2_SimpleChannelFrontend .phar in the root of your
channel server as index.php, and add an .htaccess file with the following:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
For a more customized interface, you can create a config.inc.php file, or
install the package and use the files in the www_dir as a starting point for
a fully customized PEAR channel. The pear2.php.net uses this method for a
custom frontend.
PEAR2_SimpleChannelFrontend can also be used as a viewer for remote PEAR
channels. See the config.sample.php file for an example of how to do this.
Release Notes - 0.2.0
Features and BugFixes:
- Change pear2 namespace to PEAR2 [saltybeagle]
- Add release file browser [saltybeagle|gauthierm]
- Add category page [gauthierm]
- Add view for latest releases, ordered by date [saltybeagle]
- Support pagination for releases and packages [saltybeagle]
- Add package search support [saltybeagle]
- Reduce number of static properties and methods [gauthierm]
- Split initialization into its own method outside of construct [gauthierm]
- Various cleanup [gauthierm]
- Add router for clean URLs, backported from PEAR2Web [saltybeagle]
- Add release file browsing support, backported from PEAR2 [saltybeagle|gauthierm]
- Support using the frontend as a viewer for remote channels [saltybeagle]
PEAR2_SimpleChannelFrontend API release notes for version 0.2.0:
Most of the static methods have been removed. See the sample config file for instructions on how to set up your local channel.
Installation
| Status: | 0.2.0 alpha, released on May 9, 2011 |
|---|---|
| License: | New BSD License |
| Maintained: | yes |
