• Stars
    star
    163
  • Rank 230,492 (Top 5 %)
  • Language
    PHP
  • Created about 11 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Gitlab Composer repository

Gitlab Composer repository

Small script that loops through all branches and tags of all projects in a Gitlab installation and if it contains a composer.json, adds it to an index.

This is very similar to the behaviour of Packagist.org

See example.

Installation

  1. Run composer.phar install
  2. Copy confs/samples/gitlab.ini into confs/gitlab.ini, following instructions in comments
  3. Ensure cache is writable
  4. Change the TTL as desired (default is 60 seconds)
  5. Ensure an alias exists for /packages.json => /packages.php (.htaccess is provided)

Usage

Simply include a composer.json in your project, all branches and tags respecting the formats for versions will be detected.

By default, the package name must be equal to the path of the project. i.e.: my-group/my-project. This is not a design requirement, it is mostly to prevent common errors when you copy a composer.json from another project without changing its name. To enable support for differences between package names and project paths, set allow_package_name_mismatch to true in confs/gitlab.ini.

Then, to use your repository, add this in the composer.json of your project:

{
    "repositories": [
        {
            "type": "composer",
            "url": "http://gitlab-composer.stage.wemakecustom.com/"
        }
    ]
}

Caveats

While your projects will be protected through SSH, they will be publicly listed. If you require protection of the package list, I suggest this reading.

Author

More Repositories

1

wp-mu-loader

Enables the loading of Wordpress plugins sitting in mu-plugins (as folders)
PHP
23
star
2

composer-script-utils

Set of tools for Composer scripts
PHP
7
star
3

StripeBundle

Symfony 2 Bundle to Wrap the Stripe PHP SDK
PHP
7
star
4

symfony-acl-bundle

Currently not maintained
PHP
6
star
5

wp-pot-generator

Wordpress plugin: Allows to generate POT for plugins and themes and compile PO to MO.
PHP
6
star
6

symfony-kickstart

Tips and tricks to bootstrap efficiently a Symfony installation
PHP
5
star
7

wp-config-manager

Wordpress Plugin: Loader for different types of configuration stored in files in themes’ directory
PHP
5
star
8

wp-skeleton

ApacheConf
4
star
9

wp-mu-required-plugins

Rewrite of https://github.com/thomasgriffin/TGM-Plugin-Activation
PHP
4
star
10

doctrine-naming-strategy-bundle

A slightly different snake_case naming strategy for doctrine
PHP
3
star
11

swiftmailer-twig-bundle

A Bridge to generate SwiftMailer eMails using Twig
PHP
3
star
12

menu-part-bundle

Symfony Bundle wrapping KnpMenuBundle to declare menus by small parts
PHP
3
star
13

symfony-app-loader

Unified front controller for Symfony, merging all the options into a single AppLoader. The options are all overridable using a custom front controller or extending the AppLoader.
PHP
2
star
14

wp-mu-composer

MU Loader to auto-require composer in Wordpress
PHP
2
star
15

sane-web-interface

Very basic Web interface for remote scanning with Sane
PHP
1
star
16

wmc-dev

Shell
1
star
17

DirectoryLoaderBundle

Symfony DirectoryLoaderBundle to recursively import directories of configuration
PHP
1
star
18

php-graylog-handler

Error handling file to log all PHP errors to Graylog2
PHP
1
star
19

wp-mu-config-manager

MU Loader for wemakecustom/wp-config-manager
PHP
1
star