PHPackages                             coka/constraint-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. coka/constraint-bundle

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

coka/constraint-bundle
======================

Symfony validator custom constraint

1.3.1(1mo ago)39.6k↓54.5%MITPHPPHP &gt;=7.4CI failing

Since Nov 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/CedrickOka/constraint-bundle)[ Packagist](https://packagist.org/packages/coka/constraint-bundle)[ Docs](https://github.com/CedrickOka/constraint-bundle)[ RSS](/packages/coka-constraint-bundle/feed)WikiDiscussions master Synced today

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

OkaConstraintBundle
===================

[](#okaconstraintbundle)

This bundle provides custom constraints validator.

[![Latest Stable Version](https://camo.githubusercontent.com/9faf5dada0371dd92431f097e5daf120e8a6b9d8178c86689aaf2a63126d5151/68747470733a2f2f706f7365722e707567782e6f72672f636f6b612f636f6e73747261696e742d62756e646c652f762f737461626c65)](https://packagist.org/packages/coka/constraint-bundle)[![Total Downloads](https://camo.githubusercontent.com/a738b1dd7c92b960ec72d724e1bbd326f3dce2075c2865ef60a433c35a177920/68747470733a2f2f706f7365722e707567782e6f72672f636f6b612f636f6e73747261696e742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/coka/constraint-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/748cb2d89fe9b920feb5c8320dc27630545f898a005a10f9b1aa9cf70aea12cf/68747470733a2f2f706f7365722e707567782e6f72672f636f6b612f636f6e73747261696e742d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/coka/constraint-bundle)[![License](https://camo.githubusercontent.com/cade826c5825e1d530388416b2a844bb33d422dbbfd4f5ece60103b113c498b7/68747470733a2f2f706f7365722e707567782e6f72672f636f6b612f636f6e73747261696e742d62756e646c652f6c6963656e7365)](https://packagist.org/packages/coka/constraint-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/93966372ac8a71bebec6a0a48c22fa1ffecbf7ac4db228876dac6cff389a632f/68747470733a2f2f706f7365722e707567782e6f72672f636f6b612f636f6e73747261696e742d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/coka/constraint-bundle)[![Daily Downloads](https://camo.githubusercontent.com/72afe96dfd22a53e9c0194bcf18329f32a3fcbbaf9cbb235346212e7827e54f4/68747470733a2f2f706f7365722e707567782e6f72672f636f6b612f636f6e73747261696e742d62756e646c652f642f6461696c79)](https://packagist.org/packages/coka/constraint-bundle)[![Travis CI](https://camo.githubusercontent.com/16f43c6fec00839e1a4d18582f296e31c2160a2d481c3b0d910893b4559a393f/68747470733a2f2f7472617669732d63692e6f72672f4365647269636b4f6b612f636f6e73747261696e742d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CedrickOka/constraint-bundle)

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that use Symfony Flex
----------------------------------

[](#applications-that-use-symfony-flex)

Open a command console, enter your project directory and execute:

```
$ composer require coka/constraint-bundle
```

Applications that don't use Symfony Flex
----------------------------------------

[](#applications-that-dont-use-symfony-flex)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require coka/constraint-bundle
```

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Oka\ConstraintBundle\OkaConstraintBundle::class => ['all' => true],
];
```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance93

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~165 days

Recently: every ~160 days

Total

11

Last Release

33d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5698547?v=4)[Cedrick Oka](/maintainers/CedrickOka)[@CedrickOka](https://github.com/CedrickOka)

---

Top Contributors

[![CedrickOka](https://avatars.githubusercontent.com/u/5698547?v=4)](https://github.com/CedrickOka "CedrickOka (8 commits)")

---

Tags

validatorconstraint

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/coka-constraint-bundle/health.svg)

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

###  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.6k61](/packages/open-dxp-opendxp)[sylius/sylius

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

8.5k5.9M735](/packages/sylius-sylius)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

515100.5k3](/packages/web-auth-webauthn-framework)

PHPackages © 2026

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