PHPackages                             lynx/lynx - 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. lynx/lynx

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

lynx/lynx
=========

Awesome Mapper on top of DBAL/Doctrine2

0.2.1(10y ago)151326MITPHPPHP &gt;=5.5

Since Nov 29Pushed 10y agoCompare

[ Source](https://github.com/lynx/lynx)[ Packagist](https://packagist.org/packages/lynx/lynx)[ RSS](/packages/lynx-lynx/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (3)Dependencies (8)Versions (4)Used By (0)

Lynx
====

[](#lynx)

[![Build Status](https://camo.githubusercontent.com/9153703f49dc1f55aa53bfb7ccb0290cbcb933616572e8d501d7f30abab5052d/68747470733a2f2f7472617669732d63692e6f72672f6c796e782f6c796e782e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lynx/lynx)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/51d418a6cefa3d5a2dbb98cd555c2520348f95996b2fb3bedcdea57ebce299ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c796e782f6c796e782f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lynx/lynx/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/9adfd5da64227b79528eca1cd3eab456e8c5b2057214e3ecda1723585a197d5a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6c796e782f6c796e782f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/lynx/lynx/?branch=master)

> An awesome Mapper on top of Doctrine 2 components

How to work?
------------

[](#how-to-work)

First you need to setup EntityManager ($em) :

```
$configuration = new Configuration();
$configuration->setResultCacheImpl($di->getCache());
$configuration->setMetadataDriverImpl(
    new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(
        new AnnotationReader(),
        realpath(APP_ROOT_PATH . '/src/BlaBla/User/Model/')
    )
);
$configuration->setMetadataCacheImpl(
    new \Doctrine\Common\Cache\ApcCache()
);

$em = new \Lynx\EntityManager(
    $di->getDb(),
    $configuration
);
```

### Working with repository

[](#working-with-repository)

You can get a `Repository` for `Model` by using method `getRepository` from `EntityManager`:

```
$repository = $em->getRepository(User::class);
```

For example, you can get one row by using:

```
$repository = $em->getRepository(User::class);
/** User|null $user */
$user = $repository->findOne(1);
```

You can count all rows from table:

```
$repository = $em->getRepository(User::class);
$count = $repository->count();
```

Testing
-------

[](#testing)

#### PostgresSQL

[](#postgressql)

```
sudo docker run --name lynx-test -p 5432:5432 -e POSTGRES_PASSWORD= -d postgres
psql -p 5432 -h 127.0.0.1 -U postgres -c 'create database lynx_test;'
psql -p 5432 -h 127.0.0.1 -U postgres -d lynx_test -f tests/schemas/pqsql/lynx_test.sql

```

LICENSE
-------

[](#license)

MIT

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~37 days

Total

3

Last Release

3747d ago

### Community

Maintainers

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

---

Top Contributors

[![ovr](https://avatars.githubusercontent.com/u/572096?v=4)](https://github.com/ovr "ovr (125 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)

PHPackages © 2026

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