Skip to content

sebastianbergmann/phar-site-generator

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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