PHPackages                             alm/querymap - 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. alm/querymap

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

alm/querymap
============

Query mechanism for Doctrine inspired by Django's QuerySet

v1.1.0(10y ago)028MITPHPPHP &gt;=5.5.9

Since Jun 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/alumarcu/querymap)[ Packagist](https://packagist.org/packages/alm/querymap)[ RSS](/packages/alm-querymap/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (12)Versions (3)Used By (0)

Provides a simplified interface for building queries with Doctrine.

### Sample usage

[](#sample-usage)

```
/** @var \QueryMap\Bundle\QueryMapBundle\Service\QueryMapFactoryService $qmFactory */
$qmFactory = $this->container->get('querymap.factory');

$qm = $qmFactory->create(Team::class, 't');

/** @var $query \Doctrine\ORM\QueryBuilder */
$query = $qm->query([
    'points__gt' => '6',
    'continent' => 'Europe'
]);

echo $query->getDQL();
//SELECT t FROM FootballBundle\Entity\Team t
//WHERE (t.points >= 6) AND (t.continent = 'Europe')

```

### Installation

[](#installation)

Edit your composer.json to include the package into your project, and run `composer update alm/querymap`

```
require {
    ...
    "alm/querymap": "v1.1.*"
    ...
}

```

To your $bundles array in AppKernel.php include the QueryMap bundle and provide to its constructor.

```
$bundles = [
    ...
    new QueryMap\Bundle\QueryMapBundle\QueryMapBundle($this),
    ...
]

```

Next, to your config.yml file you should specify paths for your mapping yml files - if you use this feature - as such:

```
query_map:
    paths:
        - '@FooBundle/Resources/querymap'
        - '@BarBundle/Resources/querymap'

```

For the entities you wish to filter using QueryMap, add the `@QM\Map` annotation in the Entity header.

```
use Doctrine\ORM\Mapping as ORM;
use QueryMap\Contrib\Annotation\DoctrineAnnotationMapping as QM;

/**
 * @ORM\Entity(repositoryClass=\MyBundle\Repository\TeamRepository)
 * ...
 * @QM\Map
 */

```

You will now be able to filter by all properties of that entity which are defined as @ORM\\Column, @ORM\\ManyToOne or @ORM\\OneToOne.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3669d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6650210?v=4)[Alexandru Marcu](/maintainers/alumarcu)[@alumarcu](https://github.com/alumarcu)

---

Top Contributors

[![alumarcu](https://avatars.githubusercontent.com/u/6650210?v=4)](https://github.com/alumarcu "alumarcu (6 commits)")

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k60](/packages/open-dxp-opendxp)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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