https://github.com/kenjis/codeigniter-doctrine
A simple Doctrine integration for CodeIgniter 3.x
https://github.com/kenjis/codeigniter-doctrine
Last synced: 3 months ago
JSON representation
A simple Doctrine integration for CodeIgniter 3.x
- Host: GitHub
- URL: https://github.com/kenjis/codeigniter-doctrine
- Owner: kenjis
- License: mit
- Created: 2015-06-06T10:47:38.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-13T11:30:58.000Z (almost 8 years ago)
- Last Synced: 2025-10-04T04:44:46.716Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 13.7 KB
- Stars: 24
- Watchers: 5
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# CodeIgniter Doctrine
This package provides simple Doctrine integration for [CodeIgniter](https://github.com/bcit-ci/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:
~~~php
$this->load->library('Doctrine');
~~~
Use the entity manager:
~~~php
$em = $this->doctrine->em;
~~~
Use `doctrine` command:
~~~
$ cd /path/to/codeigniter/
$ vendor/bin/doctrine
~~~
### Reference
* http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/
## Related Projects for CodeIgniter 3.x
* [CodeIgniter Composer Installer](https://github.com/kenjis/codeigniter-composer-installer)
* [Cli for CodeIgniter 3.0](https://github.com/kenjis/codeigniter-cli)
* [ci-phpunit-test](https://github.com/kenjis/ci-phpunit-test)
* [CodeIgniter Simple and Secure Twig](https://github.com/kenjis/codeigniter-ss-twig)
* [CodeIgniter Deployer](https://github.com/kenjis/codeigniter-deployer)