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(9y ago)028MITPHPPHP &gt;=5.5.9

Since Jun 15Pushed 9y ago1 watchersCompare

[ Source](https://github.com/alumarcu/querymap)[ Packagist](https://packagist.org/packages/alm/querymap)[ RSS](/packages/alm-querymap/feed)WikiDiscussions master Synced 2mo 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 43% 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

3622d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9cad1c1a55dde36b822b7d2e29c18940b3063b0255ffc1a0751fc54dee7c2c9?d=identicon)[alumarcu](/maintainers/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

[sylius/sylius

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

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

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

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

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

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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