Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com 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
add comment

2 Answers

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 spiffyjr.me/2010/11/17/… –  Ponsjuh Mar 8 '13 at 12:40
add comment

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
add comment

Your Answer

 
discard

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