PHPackages                             symlex/doctrine-active-record - 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. symlex/doctrine-active-record

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

symlex/doctrine-active-record
=============================

Object-oriented CRUD for Doctrine DBAL

v4.6.1(1y ago)308.7k↓28.6%5[1 issues](https://github.com/symlex/doctrine-active-record/issues)2MITPHPPHP &gt;=7.3

Since Nov 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/symlex/doctrine-active-record)[ Packagist](https://packagist.org/packages/symlex/doctrine-active-record)[ Docs](https://github.com/symlex/doctrine-active-record)[ RSS](/packages/symlex-doctrine-active-record/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (33)Used By (2)

Object-oriented CRUD for Doctrine DBAL
======================================

[](#object-oriented-crud-for-doctrine-dbal)

[![Latest Stable Version](https://camo.githubusercontent.com/95d0191415614a0bbcf7fe7b14154b1b5780f673c577cc092676d41a389b713b/68747470733a2f2f706f7365722e707567782e6f72672f73796d6c65782f646f637472696e652d6163746976652d7265636f72642f762f737461626c652e737667)](https://packagist.org/packages/symlex/doctrine-active-record)[![License](https://camo.githubusercontent.com/af7cfe4a0ad2e6d57a9c2f1181f9779718f1986ff852c723468e531d37b06858/68747470733a2f2f706f7365722e707567782e6f72672f73796d6c65782f646f637472696e652d6163746976652d7265636f72642f6c6963656e73652e737667)](https://packagist.org/packages/symlex/doctrine-active-record)[![Test Coverage](https://camo.githubusercontent.com/4429d153f68cd70eba94478865b426ae8a1794ab76e60e38d2f770b07f309e62/68747470733a2f2f636f6465636f762e696f2f67682f73796d6c65782f646f637472696e652d6163746976652d7265636f72642f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/symlex/doctrine-active-record)[![Build Status](https://camo.githubusercontent.com/3d0bf4c3c2cc529a941cb14d52cf5c3ac9e9911e766ae995eac28d554ed12c7b/68747470733a2f2f7472617669732d63692e6f72672f73796d6c65782f646f637472696e652d6163746976652d7265636f72642e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/symlex/doctrine-active-record)[![Documentation](https://camo.githubusercontent.com/84e7e669c9ae017b0fad97fbe04fe187e788bc569eabc772c41e9a2ec33e2708/68747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f73796d6c65782d646f63732f62616467652f3f76657273696f6e3d6c6174657374267374796c653d666c6174)](https://docs.symlex.org/en/latest/doctrine-active-record)

As a lightweight alternative to Doctrine ORM, this battle-tested library provides Business Model and Database Access Object (DAO) classes that encapsulate **Doctrine DBAL** to provide high-performance, object-oriented CRUD (create, read, update, delete) functionality for relational databases. It is a lot faster and less complex than Datamapper ORM implementations. See [TRADEOFFS.md](TRADEOFFS.md).

Documentation:

[![Doctrine ActiveRecord](https://camo.githubusercontent.com/a3c05839f47e24b5ba405411eaeac46642a056ce5fbc9e88448bd47143dfc83d/68747470733a2f2f646f63732e73796d6c65782e6f72672f656e2f6c61746573742f646f637472696e652d6163746976652d7265636f72642f696d672f776f726b666c6f772e737667)](https://camo.githubusercontent.com/a3c05839f47e24b5ba405411eaeac46642a056ce5fbc9e88448bd47143dfc83d/68747470733a2f2f646f63732e73796d6c65782e6f72672f656e2f6c61746573742f646f637472696e652d6163746976652d7265636f72642f696d672f776f726b666c6f772e737667)

Basic Example
-------------

[](#basic-example)

```
