Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can any one explain the step by step procedure of installing Doctrine in Linux through terminal?

share|improve this question

migrated from Mar 10 '13 at 21:34

This question came from our site for professional and enthusiast programmers.

Do you want to have Doctrine in your global PHP include path or just inside of an project? Information please! – Hikaru-Shindo Mar 8 '13 at 11:16
@Hikaru-Shindo , I want to have in my zend framework application , which is named square – user2147269 Mar 8 '13 at 11:29

You can add doctrine to composer.json in your project directory

under require add "doctrine/common": "2.x"

"require": {
    "php": ">=5.3.3",
    "zendframework/zendframework": "2.*",
    "doctrine/common": "2.x" 

Then in your project directory run php composer.phar update

share|improve this answer
i also found a better way :) aka step by step version of the installment – Ponsjuh Mar 8 '13 at 11:33
According to the tags he is using ZF1 – Hikaru-Shindo Mar 8 '13 at 12:16
@Ponsjuh , I cannot locate the composer.json in my directory – user2147269 Mar 8 '13 at 12:23
in case of zf1 use this… – Ponsjuh Mar 8 '13 at 12:40

If you want to integrate Doctrine 2 in a ZF1 project you may use the Bisna Doctrine2 enabled ZF1 skeleton project from Github

Since you are trying to integrate Doctrine 2 your project does not seem to be really far into development so it should be easy to integrate. The readme file explains the steps needed to be done quiet well.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.