PHPackages                             emanueleminotto/reserved-usernames-validator - 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. emanueleminotto/reserved-usernames-validator

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

emanueleminotto/reserved-usernames-validator
============================================

Symfony validator for reserved usernames

1.0.0(9y ago)0132MITPHPPHP ^5.6 || ^7.0

Since Dec 24Pushed 9y ago1 watchersCompare

[ Source](https://github.com/EmanueleMinotto/reserved-usernames-validator)[ Packagist](https://packagist.org/packages/emanueleminotto/reserved-usernames-validator)[ Docs](https://github.com/EmanueleMinotto/reserved-usernames-validator)[ RSS](/packages/emanueleminotto-reserved-usernames-validator/feed)WikiDiscussions master Synced 2mo ago

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

Symfony Validator for Reserved Usernames
========================================

[](#symfony-validator-for-reserved-usernames)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a64ef112925c301276136bc803af54e9f2cda8eb7ff66cff3fce98ad6cf5bb68/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f456d616e75656c654d696e6f74746f2f72657365727665642d757365726e616d65732d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/EmanueleMinotto/reserved-usernames-validator)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/58eacff8ca033736b035b564a176783ba41b90949e2590aa5f4d51a78a03a074/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456d616e75656c654d696e6f74746f2f72657365727665642d757365726e616d65732d76616c696461746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/EmanueleMinotto/reserved-usernames-validator)[![Coverage Status](https://camo.githubusercontent.com/f6800fee3b5cf1412afe26a4105e8782a069f04a1a6700d40617a49b0afac889/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f456d616e75656c654d696e6f74746f2f72657365727665642d757365726e616d65732d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EmanueleMinotto/reserved-usernames-validator/code-structure)[![Quality Score](https://camo.githubusercontent.com/f845b1c206b9b0c039393e8d782b7180afa67ede546a892c3dd0f8d2b49bb03e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456d616e75656c654d696e6f74746f2f72657365727665642d757365726e616d65732d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EmanueleMinotto/reserved-usernames-validator)[![Total Downloads](https://camo.githubusercontent.com/edb7d794fa8bf955e95b9d837d2eaf6f6b8b93d6147a6ca2223023b8cac9ec5e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f456d616e75656c654d696e6f74746f2f72657365727665642d757365726e616d65732d76616c696461746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/EmanueleMinotto/reserved-usernames-validator)

Symfony validator for reserved usernames (or strings), based on [shouldbee/reserved-usernames](https://github.com/shouldbee/reserved-usernames).

Install
-------

[](#install)

Via Composer

```
$ composer require emanueleminotto/reserved-usernames-validator
```

Usage
-----

[](#usage)

```
use EmanueleMinotto\ReservedUsernamesValidator\NotReserved;

$constraint = new NotReserved();
$constraint->message = 'The username "%value%" is reserved.';

// use the validator to validate the value
$errorList = $this
    ->get('validator')
    ->validate('about', $constraint);

$errorMessage = $errorList[0]->getMessage(); // The username "about" is reserved.
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Emanuele Minotto](https://github.com/EmanueleMinotto)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/30b6fbd038f22a54716027eb7ce30c6cafd8e59c138ae58b3c2516c34ccfef7f?d=identicon)[EmanueleMinotto](/maintainers/EmanueleMinotto)

---

Top Contributors

[![EmanueleMinotto](https://avatars.githubusercontent.com/u/417201?v=4)](https://github.com/EmanueleMinotto "EmanueleMinotto (1 commits)")

---

Tags

symfonyvalidatorreserved-usernames

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/emanueleminotto-reserved-usernames-validator/health.svg)

```
[![Health](https://phpackages.com/badges/emanueleminotto-reserved-usernames-validator/health.svg)](https://phpackages.com/packages/emanueleminotto-reserved-usernames-validator)
```

###  Alternatives

[rollerworks/password-strength-validator

Password-strength validator for Symfony

1455.7M6](/packages/rollerworks-password-strength-validator)[barbieswimcrew/zip-code-validator

Constraint class for international zipcode validation

772.3M](/packages/barbieswimcrew-zip-code-validator)[sllh/iso-codes-validator

Symfony validator wrapper of ronanguilloux/isocodes

37299.8k2](/packages/sllh-iso-codes-validator)

PHPackages © 2026

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