User Guide > Tasks > Working with Plugins > Working with Composer

Working with Composer

This procedure describes how to begin working with the Composer plugin.

Prerequisites

How do I install the Composer plugin?

Getting Started with the Composer

The following procedure will describe how to begin managing dependencies for your PHP project using the Composer in Zend Studio.

Note:

New Zend Framework 2 projects automatically include the Composer, and do not need to be manually converted.

 

 

Instructions on how to complete a procedure

To start working with the Composer:

  1. In the PHP Explorer, right-click your project and select Configure | Convert to Composer project.
  2. If you have yet to create the 'composer.phar' and composer.json' files, right-click your project in the PHP Explorer again, and select Composer | Initialize composer.
  1. Set the Composer's general properties, and click Finish.
    The 'composer.phar' and composer.json' files are created.
  2. To add a dependency, right-click your project in the PHP Explorer again, and select Composer | Add dependency.
    The Add Composer Dependency wizard is displayed.
  3. Search packagist.org for a composer package by entering a search string in the search field.
  4. Select the requested package, and click Next.
    The Select package versions dialog is displayed.
  5. If available, select the package version, and click Finish.
    The Composer packages are installed and added to your project.

 

 

 

Related Links

Related Links:

Composer

Customizing

Plugins

 

 

©1999-2013 Zend Technologies LTD. All rights reserved.