PHPackages                             kohana/doctrine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. kohana/doctrine

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

kohana/doctrine
===============

Kohana module for integrating doctrine into kohana

0.1(10y ago)3814MITPHPPHP &gt;=5.4

Since Mar 20Pushed 10y ago5 watchersCompare

[ Source](https://github.com/kohana/doctrine)[ Packagist](https://packagist.org/packages/kohana/doctrine)[ RSS](/packages/kohana-doctrine/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Kohana Doctrine Library
=======================

[](#kohana-doctrine-library)

[![Build Status](https://camo.githubusercontent.com/364bf02752d6036ad865f9165fd733f21ea73abb3cc844d7707ad286064ecfbc/68747470733a2f2f7472617669732d63692e6f72672f6b6f68616e612f646f637472696e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kohana/doctrine)

The doctrine library for Kohana 3 provides a simple integration with doctrine 2.\*. You can configure your doctrine integration by placing the `config/doctrine.php` file into your `app/config` folder and editing it.

Supported mapping solutions
---------------------------

[](#supported-mapping-solutions)

Currently this module supports the following mapping methods.

1. Annotation
2. Xml
3. Yaml

Supported caching solutions
---------------------------

[](#supported-caching-solutions)

Currently this module supports the following caching methods.

1. Apc
2. Array
3. Memcache
4. Redis
5. Xcache

Using Doctrine
--------------

[](#using-doctrine)

To use Kohana Doctrine, install it by composer require. You can do this by running `composer require kohana/doctrine` in your CLI. Then add Kohana Doctrine to your modules in `bootstrap.php` by adding the following line `'doctrine' => VENDORPATH.'kohana/doctrine'`.

To configure doctrine copy the `vendor/kohana/doctrine/config/doctrine.php` or your `app/config` folder and editing it.

Quick example
-------------

[](#quick-example)

The following is a quick example of how to use Kohana Doctrine by getting the entity manager and getting a repository from the entity manager.

```
$entityManager = \Kohana\Doctrine\EntityManager::instance();
$entityManager->getRepository('Full\Namespace\To\Entity')

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3754d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38203?v=4)[Woody Gilk](/maintainers/shadowhand)[@shadowhand](https://github.com/shadowhand)

![](https://www.gravatar.com/avatar/7e34204aa146ce4acefc5d13d943fc08da5d751b3074e55687717a61c1c421d9?d=identicon)[rjd22](/maintainers/rjd22)

![](https://www.gravatar.com/avatar/f6ebcc608a86cec9a3ce7a4932994e2b89fabbfcdde69aff43e8139f34e07a5e?d=identicon)[acoulton](/maintainers/acoulton)

---

Top Contributors

[![rjd22](https://avatars.githubusercontent.com/u/160743?v=4)](https://github.com/rjd22 "rjd22 (23 commits)")[![Ikke](https://avatars.githubusercontent.com/u/135698?v=4)](https://github.com/Ikke "Ikke (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/kohana-doctrine/health.svg)

```
[![Health](https://phpackages.com/badges/kohana-doctrine/health.svg)](https://phpackages.com/packages/kohana-doctrine)
```

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k8.7k1](/packages/kimai-kimai)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

939.0k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
