2017 © Pedro Peláez
 

project composerve

Serve your git repositories as composer packages

image

esemve/composerve

Serve your git repositories as composer packages

  • Saturday, September 10, 2016
  • by esemve
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

CompoServe

What is this?, (*1)

CompoServe is a git repository 2 composer package generator. With its help you can serve the content of the git repository available in the file system as a package., (*2)

Settings

Dependency:, (*3)

With the CLI php exec it should be able to start the git command. Besides that it is important that the user from which you start the generating has reading rights to the folder that contains your git repository., (*4)

Installation, (*5)

  1. Clone the project or install from composer
composer require esemve/composerve --prefer-dist
  1. Make available the content of the public folder online
  2. Transfer all request to index.php (this way it can serve the packages.json request as well)

Settings, (*6)

Rename config/repositories.example.php to repositories.php, and add the packages and their git folders to it., (*7)

Usage

With the help of composerve.php in the root you can access the console. Run the command below after you modified your package (or added a new package):, (*8)

  php composerve.php build

It goes through all of the added repositories, interprets the tags that are in the git, retrieves the data from the composer.json, and generates zipball to the versions., (*9)

Where you want to use the packages served by CompoServe, add it to the composer.json:, (*10)

"repositories": [
    {
        "type": "composer",
        "url": "http:\/\/composerve.yourdomain.com"
    }
],

... where the http://composerve.yourdomain.com is the url through which the content of the /public folder is available., (*11)

From that point the, (*12)

composer update

command has access to all of the packages, it can download any of the versions, just like you have been using the original packagist.org., (*13)

What should be in the git?

The system can work with the git repository formats that are accepted by packagist.com. You can find the description here: https://packagist.org/about, (*14)


If you want to help me fork it and send me a pull request! :), (*15)


License: MIT, (*16)

The Versions

10/09 2016

dev-master

9999999-dev

Serve your git repositories as composer packages

  Sources   Download

MIT

by Avatar esemve

10/09 2016

0.0.6

0.0.6.0

Serve your git repositories as composer packages

  Sources   Download

MIT

by Avatar esemve

09/09 2016

0.0.5

0.0.5.0

Serve your git repositories as composer packages

  Sources   Download

MIT

by Avatar esemve

01/09 2016

0.0.4

0.0.4.0

Serve your git repositories as composer packages

  Sources   Download

MIT

by Avatar esemve

01/09 2016

0.0.3

0.0.3.0

Server your git repositories as composer packages

  Sources   Download

MIT

by Avatar esemve

01/09 2016

0.0.2

0.0.2.0

Convert git repositories to composer packages

  Sources   Download

MIT

by Avatar esemve

01/09 2016

0.0.1

0.0.1.0

Convert git repository to composer package

  Sources   Download

MIT

by smv