Composer

Synopsis

Composer is an application-level dependency manager for the PHP programming language that provides a standard format for managing dependencies of PHP software and required libraries.

It allows you to declare the dependent libraries your project needs and it will install them in your project for you. Composer is multi-platform and we strive to make it run equally well on Windows, Linux and OSX.

Help Command

This command helps to determine the usage of composer module. The user will come to know about the different ways/format to execute this module. This command guides the end user to know the purpose of this command. Below given are the command and the screenshot of the same.

                cleopatra composer help

kevells@corp:/# cleopatra composer help
******************************


 This command allows you to update Composer.

 Composer, composer

       - install
       Installs the latest version of composer
       example: cleopatra composer install

------------------------------
End Help
******************************

Installation

When the user needs to install composer module in machine, the below given command will execute the process of installation.

cleopatra composer install

While installing, the system ask for the directory name, if you wants to set up your PATH, you can define your path. Define your path has to be followed by ‘/’ symbol. Press Enter to use default path.

“What is the program data directory? “/opt/composer” - use this?

While installing, the system ask for executing directory name, if you wants to set up your PATH, you can define your path. Define your path has to be followed by ‘/’ symbol. Press Enter to use default path.

“What is the program executer directory? Found “/usr/bin” - Use this? “

Options

Parameters Alternative Parameter Option Comments
cleopatra composer Install Composer , composer Y System starts installation process
cleopatra composer Install Composer , composer N System stops installation process|

Benefits

  • It installs dependencies (e.g. libraries) for an application.
  • It also allows users to install PHP applications that are available on “Packagist” which is its main repository containing available packages. It also provides auto load capabilities for libraries that specify auto load information to ease usage of third-party code.
comments powered by Disqus

Edit this document!

This file can be edited directly through the Web. Anyone can update and fix errors in this document with few clicks -- no downloads needed.

  1. Go to Composer on GitHub.
  2. Edit files using GitHub's text editor in your web browser (see the 'Edit' tab on the top right of the file)
  3. Fill in the Commit message text box at the bottom of the page describing why you made the changes. Press the Propose file change button next to it when done.
  4. Then click Send a pull request.
  5. Your changes are now queued for review under the project's Pull requests tab on GitHub!

For an introduction to the documentation format please see the reST primer.