-
Notifications
You must be signed in to change notification settings - Fork 3
/
README
23 lines (18 loc) · 914 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
A simple PEAR channel frontend that does not require a database.
This package provides a simple frontend to a PEAR channel by directly using
the PEAR channel files.
To use, place the Pyrus_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.
Pyrus_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.