/codeigniter-doctrine

A simple Doctrine integration for CodeIgniter 3.x

Primary LanguagePHPMIT LicenseMIT

CodeIgniter Doctrine

This package provides simple Doctrine integration for CodeIgniter 3.x.

Folder Structure

codeigniter/
└── application/
    └── libraries/
        └── codeigniter-doctrine/
            └── libraries/
                └── Doctrine.php

Requirements

  • PHP 5.4.0 or later
  • Composer

Installation

Install this project with Composer:

$ cd /path/to/codeigniter/
$ composer require kenjis/codeigniter-doctrine:1.0.x@dev

Usage

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

Reference

Related Projects for CodeIgniter 3.x