Extremely lightweight (PHP) Composer repository generator.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
src/Elicorege
views
README.md
composer.json

README.md

elicorege

Extremely lightweight (PHP) composer repository generator.

Features

Installation

Download composer.

wget http://getcomposer.org/composer.phar

Create composer.json file.

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/sobstel/elicorege"
        }
    ],
    "require": {
        "sobstel/elicorege": "*@dev"
    },
    "minimum-stability": "dev"
}

Install packages.

php composer.phar install

Usage

./vendor/bin/elicorege --config-file=config.json --output-dir=public

config.json

{
    "name": "Example",
    "homepage": "http://user:password@git.example.com",

    "base_local_path": "/var/git",
    "base_clone_path": "git@git.example.com",

    "repos": {
        "symfony/classloader": { "relative_path": "mirrors/ClassLoader.git", "references": ["v2.0.16"] },
        "twig": { "relative_path": "mirrors/Twig.git", "references": ["v1.12.3", "v1.12.2"] },
        "lsdcache": { "relative_path": "lsdcache.git", "references": ["master"] }
    }
}

Limitations

  • All repos must have local copies (eg. git@github.com:sobstel/elicorege.git not allowed). It's intentional though as it has advantage of not being vulnerable on external parties downtimes.