Skip to content

A tool that generates an HTML page, RSS feed, and Phive metadata for a PHAR repository

License

Notifications You must be signed in to change notification settings

sebastianbergmann/phar-site-generator

Repository files navigation

phar-site-generator

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

Usage

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>sebastian@phpunit.de</email>
    <directory>/webspace/phar.phpunit.de/html</directory>
    <nginx>/webspace/phpunit.de/phar/redirects.conf</nginx>
</phar-site>

About

A tool that generates an HTML page, RSS feed, and Phive metadata for a PHAR repository

Resources

License

Stars

Watchers

Forks

Sponsor this project