Package / Library dependency manager for PHP with Composer and Packagist

An easy way to manage your dependencies in PHP. Composer is at http://getcomposer.org/ and packages at http://packagist.org/ The packages can be browsed at http://packagist.org/packages/

Composer

PHP 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.

  • Download composer with:

    curl -s http://getcomposer.org/installer | php

  • Create composer.json with package configuration in root dir of project, and specify packages and dependencies. Example:

    { “name”: “acme/hello-world”,
    “require”: {
    “monolog/monolog”: “1.0.*”
    }
    }

  • Install package dependencies with:

    php composer.phar install

  • Update package dependencies (after modifications to composer.json) with:

    php composer.phar update

  • Update package dependencies (after modifications to composer.json) with:

    php composer.phar update

Use it to autoload ALL dependency classes, only adding this line to your PHP modules:

require ‘vendor/.composer/autoload.php’;

4 thoughts on “Package / Library dependency manager for PHP with Composer and Packagist

  1. Pingback: Manu º¹ºº¹¹º¹º¹¹¨¨

  2. Pingback: Manu º¹ºº¹¹º¹º¹¹¨¨

  3. Pingback: Manu º¹ºº¹¹º¹º¹¹¨¨

  4. pdf to word freeware on

    Howdy! Do you know if they make any plugins to assist with SEO?
    I’m trying to get my blog to rank for some targeted keywords but I’m not seeing very
    good success. If you know of any please share. Kudos!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>