PHPackages                             boshurik/unique-model-constraint - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. boshurik/unique-model-constraint

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

boshurik/unique-model-constraint
================================

Unique model validator for doctrine ORM and ODM

1.0.0(5y ago)01.4kMITPHPPHP ^7.4|^8.0

Since Oct 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/BoShurik/unique-model-constraint)[ Packagist](https://packagist.org/packages/boshurik/unique-model-constraint)[ RSS](/packages/boshurik-unique-model-constraint/feed)WikiDiscussions master Synced today

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

Unique Model Symfony Constraint [![Build Status](https://camo.githubusercontent.com/1fb65747d2003e5c23d47287429af261ba3f1fc4844519641767821e9445a99e/68747470733a2f2f7472617669732d63692e636f6d2f426f53687572696b2f756e697175652d6d6f64656c2d636f6e73747261696e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/BoShurik/unique-model-constraint)
===============================================================================================================================================================================================================================================================================================================================================================

[](#unique-model-symfony-constraint-)

Port of `UniqueEntity` constraint

Installation
------------

[](#installation)

```
composer require boshurik/unique-model-constraint
```

Symfony integration
-------------------

[](#symfony-integration)

```
services:
    _defaults:
        autowire: true
        autoconfigure: true

    BoShurik\Constraints\Model\UniqueModelValidator: ~
```

without `autoconfigure`:

```
services:
    BoShurik\Constraints\Model\UniqueModelValidator:
        arguments:
            - '@doctrine' # @doctrine_mongodb
        tags: ['validator.constraint_validator']
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

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

2081d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c993e095b7e97c566f5079dfba606f34afbbc8d096bb74cabbb09ab4248dd3a?d=identicon)[BoShurik](/maintainers/BoShurik)

---

Top Contributors

[![BoShurik](https://avatars.githubusercontent.com/u/1428848?v=4)](https://github.com/BoShurik "BoShurik (3 commits)")

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/boshurik-unique-model-constraint/health.svg)

```
[![Health](https://phpackages.com/badges/boshurik-unique-model-constraint/health.svg)](https://phpackages.com/packages/boshurik-unique-model-constraint)
```

###  Alternatives

[sylius/sylius

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

8.5k5.9M734](/packages/sylius-sylius)[pimcore/pimcore

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

3.8k3.8M508](/packages/pimcore-pimcore)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.4M203](/packages/sulu-sulu)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.8k](/packages/contao-core-bundle)

PHPackages © 2026

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