<commit_before># Puppet module to install composer

## Description

install php composer - from http://getcomposer.org/ with puppet-composer module

## Installation

#### Installation via puppet forge (RECOMMENDED, automatically installs all dependencies)

    puppet module install --target-dir=/your/path/to/modules tPl0ch-composer

#### Installation via git submodule

    git submodule add git://github.com/tPl0ch/puppet-composer.git modules/composer

## Dependencies

This module requires the module ```puppetlabs/git```

## Usage

#### Simple include just installs with defaults

In your manifest.pp:

    include composer

#### Configuring the composer install

In your manifest.pp:

    # configure composer install - not nessecary, comes with sane defaults
    class { 'composer':
        target_dir      => '/usr/local/bin',
        composer_file   => 'composer', # could also be 'composer.phar'
        download_method => 'curl', # or 'wget'
    }

#### Creating a project

In your manifest.pp:

    # create a project
    composer::project { 'silex':
        project_name   => 'fabpot/silex-skeleton',  # REQUIRED
        target_dir     => '/vagrant/silex', # REQUIRED<commit_msg>Adding version parameter to project task README<commit_after># Puppet module to install composer

## Description

install php composer - from http://getcomposer.org/ with puppet-composer module

## Installation

#### Installation via puppet forge (RECOMMENDED, automatically installs all dependencies)

    puppet module install --target-dir=/your/path/to/modules tPl0ch-composer

#### Installation via git submodule

    git submodule add git://github.com/tPl0ch/puppet-composer.git modules/composer

## Dependencies

This module requires the module ```puppetlabs/git```

## Usage

#### Simple include just installs with defaults

In your manifest.pp:

    include composer

#### Configuring the composer install

In your manifest.pp:

    # configure composer install - not nessecary, comes with sane defaults
    class { 'composer':
        target_dir      => '/usr/local/bin',
        composer_file   => 'composer', # could also be 'composer.phar'
        download_method => 'curl', # or 'wget'
    }

#### Creating a project

In your manifest.pp:

    # create a project
    composer::project { 'silex':
        project_name   => 'fabpot/silex-skeleton',  # REQUIRED
        target_dir     => '/vagrant/silex', # REQUIRED
        version        => '2.1.x-dev', # Some valid version string
{'fraction_non_alphanumeric': 0.10744466800804829, 'fraction_numerical': 0.002414486921529175, 'mean_word_length': 3.3537653239929948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5719983', 'n_tokens_mistral': 754, 'n_tokens_neox': 726, 'n_words': 221}