Installation ============ Doctrine can be installed many different ways. We will describe all the different ways and you can choose which one suits you best. Composer -------- `Composer `_ is the suggested installation method for Doctrine. Define the following requirement in your ``composer.json`` file: :: { "require": { "doctrine/orm": "*" } } Then run the composer command and you are done. Continue with the :doc:`Configuration `. PEAR ---- .. caution:: PEAR autoloading is deprecated as of version ``2.4`` of the ORM You can easily install any of the three Doctrine packages from the PEAR command line installation utility. To install just the ``Common`` package you can run the following command: .. code-block:: bash $ sudo pear install pear.doctrine-project.org/DoctrineCommon- If you want to use the Doctrine Database Abstraction Layer you can install it with the following command. .. code-block:: bash $ sudo pear install pear.doctrine-project.org/DoctrineDBAL- Or, if you want to get the works and go for the ORM you can install it with the following command. .. code-block:: bash $ sudo pear install pear.doctrine-project.org/DoctrineORM- .. note:: The ```` tag above represents the version you want to install. For example if the current version at the time of writing this is ``2.2.2`` for the ORM, so you could install it like the following: .. code-block:: bash $ sudo pear install pear.doctrine-project.org/DoctrineORM-2.2.2