installation.txt 1.68 KB
Newer Older
1
There are currently two different methods to install Doctrine.
jepso's avatar
jepso committed
2

3 4
* SVN (subversion)
* SVN externals
jepso's avatar
jepso committed
5

6 7 8 9 10 11 12 13 14
It is recommended to download Doctrine via SVN (subversion), because in this case updating is easy.
If your project is already under version control with SVN, you should choose SVN externals.


+++ SVN 

The installation of doctrine via SVN is very easy. Just get the latest revision of Doctrine from http://svn.phpdoctrine.org/trunk.

In order to check out Doctrine in the current directory using the **svn** command line tool use the following code:
15

jepso's avatar
jepso committed
16
<code type="bash">
17
svn co http://svn.phpdoctrine.org/trunk .
jepso's avatar
jepso committed
18 19
</code>

20
If you do not have a SVN client, chose one from the list below. Find the **Checkout** option and enter svn.phpdoctrine.org/trunk in the **path** or **repository url** parameter. There is no need for a username or password to check out Doctrine. 
jepso's avatar
jepso committed
21 22 23 24

* [http://tortoisesvn.tigris.org/ TortoiseSVN] a Windows application that  integrates into Windows Explorer
* [http://www.apple.com/downloads/macosx/development_tools/svnx.html svnx] a  Mac OS X GUI svn application 
* Eclipse has SVN integration through the [http://subclipse.tigris.org/ subeclipse] plugin
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

You can update to the latest version with

<code type="bash">
svn update
</code>

in your doctrine directory.


+++ SVN externals

If your project is under version control with SVN, you should set up doctrine via svn externals. You can do this with the **svn** command line tool:

<code type="bash"> 
svn pe svn:externals /path/to/project
</code>

You have to put the following line in the editor and save the changes.

<code>
doctrine http://svn.phpdoctrine.org/trunk
</code>

Afterwards you can download doctrine with

<code>
svn update
</code>