phar-io / phive

The Phar Installation and Verification Environment (PHIVE)
https://phar.io
BSD 3-Clause "New" or "Revised" License
581 stars 45 forks source link

Multiple repositories for one PHAR #150

Open filips123 opened 6 years ago

filips123 commented 6 years ago

Is it possible to have multiple repository URL for one PHAR in repositories.xml. This would be useful if one URL will be unavailable, so PHIVE could fallback to another.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<repositories xmlns="https://phar.io/repository-list">
    <phar alias="phpunit" composer="phpunit/phpunit">
        <repository url="https://phar.phpunit.de/phive.xml"/>
        <repository type="github" url="https://api.github.com/repos/sebastianbergmann/phpunit/releases" />
    </phar>
</repositories>

Also, is it possible to host PHAR on other GIT systems, like GitLab or BitBucket?

theseer commented 6 years ago

Multiple Repositories

Currently, that is not supported but the xml has been designed to potentially allow this in the future. Given that most repositories are on github and github has a quite high availability we didn't prioritize that very high.

Gitlab or Bitbucket

Not supported. And given - at least last time i checked - neither has a "releases" alike feature that could be used via an API to get attached files based on release tags or anything, this is not very likely to change.