Saturday, 26 December 2015

What is Composer in php? - Manage the Dependencies

What is Composer in php? -  Manage the Dependencies

Question: What is Composer?
Composer is an application-level package manager for the PHP.

Question: Why Composer is used?
  1. Composer provides a standard format for managing dependencies of PHP software.
  2. Composer installs the dependencies libraries.
  3. Composer provides autoload capabilities for libraries.

Question: Where composer is used?
When we need manage the dependencies of PHP application, we can use Composer.

Question: How Composer Works?
It works commond line.

Question: Who developed the Composer?
  1. Nils Adermann.
  2. Jordi Boggiano.

Question: What is current stable version of Composer?
1.2.0 / July 18, 2016.

Question: In Which language, It was writeen?

Question: What is offical website of Composer?

Question: What are System Requirements for compser?
  1. PHP 5.3.2+
  2. Need git, svn or hg repository depend of composer version.

Question: What is command to download the composer?
php -r "readfile('https://getcomposer.org/installer');" | php
You need curl OR openssl enable for above command.

Question: How to install the composer?
php composer.phar install

Question: How to update the composer?
php composer.phar update

Question: How to check current version of composer?
composer -V

Question: Can I used composer standard for my new project?
Yes, you can start.

Question: Is it open-source?
Yes, It is open-source.

Question: Give me sample of composer file?
    "name": "zendframework/skeleton-application",
    "description": "Skeleton Application for ZF2",
    "license": "BSD-3-Clause",
    "keywords": [
    "homepage": "http://framework.zend.com/",
    "require": {
        "php": ">=5.3.3",
        "zendframework/zendframework": "2.3.2"

No comments:

Post a Comment