This package provides simple Doctrine integration for CodeIgniter 3.x.
codeigniter/
└── application/
└── libraries/
└── codeigniter-doctrine/
└── libraries/
└── Doctrine.php
- PHP 5.4.0 or later
- Composer
Install this project with Composer:
$ cd /path/to/codeigniter/
$ composer require kenjis/codeigniter-doctrine:1.0.x@dev
Load Doctrine library:
$this->load->library('Doctrine');
Use the entity manager:
$em = $this->doctrine->em;
Use doctrine
command:
$ cd /path/to/codeigniter/
$ vendor/bin/doctrine