PHPackages                             rodgermd/uniqueentitynotnull-bundle - 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. rodgermd/uniqueentitynotnull-bundle

ActiveSymfony-bundle[Validation &amp; Sanitization](/categories/validation)

rodgermd/uniqueentitynotnull-bundle
===================================

Check if entity is unique if not null

v0.1(12y ago)222MIT

Since Dec 3Pushed 12y agoCompare

[ Source](https://github.com/rodgermd/UniqueNotNullEntity)[ Packagist](https://packagist.org/packages/rodgermd/uniqueentitynotnull-bundle)[ Docs](https://github.com/rodgermd/UniqueNotNullEntity)[ RSS](/packages/rodgermd-uniqueentitynotnull-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

UniqueNotNullEntity
===================

[](#uniquenotnullentity)

Validates the entity if properties are unique if it is not null

Install
-------

[](#install)

composer.json:

```
"rodgermd/uniqueentitynotnull-bundle": "dev-master"

```

AppKernel.php:

```
new Rodgermd\UniqueNotNullEntityBundle\RodgermdUniqueNotNullEntityBundle(),

```

Usage
-----

[](#usage)

```
use Rodgermd\UniqueNotNullEntityBundle\Validator as UniqueConstraints; # include namespace shortcut

/**
 * @ORM\Entity
 * @UniqueConstraints\HasUniqueProperties; # defines the class has properties to check, required to start validation
 */
class Entity {

  /**
   * @UniqueConstraints\UniqueProperty(message="Not unique property") # property to be validated
   */
  protected $property;
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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

4549d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/rodgermd-uniqueentitynotnull-bundle/health.svg)

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

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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