phar-site-generator
is a tool that generates an HTML page (example), RSS feed (example), and Phive metadata (example) for a PHAR repository.
This tool makes the following assumptions:
- The PHAR repository is hosted using nginx
- The PHAR repository is hosted using HTTPS
- The PHAR repository directory contains
.phar
(PHP Archive) and.phar.asc
(GPG signature) files
We distribute a PHP Archive (PHAR) that has all required (as well as some optional) dependencies of phar-site-generator bundled in a single file:
wget https://phar.phpunit.de/phar-site-generator.phar
phar-site-generator
requires an XML configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<phar-site>
<domain>phar.phpunit.de</domain>
<email>[email protected]</email>
<directory>/webspace/phar.phpunit.de/html</directory>
<nginx>/webspace/phpunit.de/phar/redirects.conf</nginx>
</phar-site>