composer - Dependency Manager for PHP

Author:Dimitrios Tydeas Mengidis

Synopsis

New in version 1.6.

Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you

Options

parameter required default choices comments
no_dev no yes
  • yes
  • no
Disables installation of require-dev packages ( see --no-dev )
no_plugins no no
  • yes
  • no
Disables all plugins ( see --no-plugins )
no_scripts no no
  • yes
  • no
Skips the execution of all scripts defined in composer.json ( see --no-scripts )
optimize_autoloader no yes
  • yes
  • no
Optimize autoloader during autoloader dump ( see --optimize-autoloader ). Convert PSR-0/4 autoloading to classmap to get a faster autoloader. This is recommended especially for production, but can take a bit of time to run so it is currently not done by default.
prefer_dist no no
  • yes
  • no
Forces installation from package dist even for de versions ( see --prefer-dist )
prefer_source no no
  • yes
  • no
Forces installation from package sources when possible ( see --prefer-source )
working_dir yes
    Directory of your project ( see --working-dir )

    Note

    Requires php

    Note

    Requires composer installed in bin path (recommended /usr/local/bin)

    Examples


    # Downloads and installs all the libs and dependencies outlined in the /path/to/project/composer.lock
    - composer: working_dir=/path/to/project

    Note

    Default options that are always appended in each execution are –no-ansi, –no-progress, and –no-interaction

    Table Of Contents

    Previous topic

    apt_rpm - apt_rpm package manager

    Next topic

    cpanm - Manages Perl library dependencies.