PHPackages                             umotif/php-livr-extra - 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. umotif/php-livr-extra

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

umotif/php-livr-extra
=====================

Lightweight validator supporting Language Independent Validation Rules Specification (LIVR)

1.0.0(5y ago)0272MITPHPPHP ^7.4

Since Dec 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/umotif-public/php-validator-livr-extra)[ Packagist](https://packagist.org/packages/umotif/php-livr-extra)[ Docs](https://github.com/umotif-public/php-validator-livr-extra)[ RSS](/packages/umotif-php-livr-extra/feed)WikiDiscussions main Synced 1mo ago

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

PHP Validator LIVR Extra (uMotif Fork)
======================================

[](#php-validator-livr-extra-umotif-fork)

Extension wrapper for [umotif-public/php-validator-livr](https://github.com/umotif-public/php-validator-livr).

This library contains additional LIVR rules not found in the original uMotif package.

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

[](#installation)

Add the package via composer:

```
composer require umotif/php-livr-extra
```

Usage
-----

[](#usage)

LIVR documentation can be found [here](https://github.com/umotif-public/php-validator-livr/blob/master/README.md).

### New Rules Functionality

[](#new-rules-functionality)

This library contains the following new rules:

\###`list_length`

(Based on [js-livr-extra-rules](https://github.com/koorchik/js-livr-extra-rules))

Checks that the value is a list and it contains required number of elements. You can pass exact number of elements required or a range.

Do not forget about "required" rule if you want the field to be required.

Example:

```
{
    list1: ['required', { list_length: 10 }]; // List is required and should contain exactly 10 items,
    list2: {
        list_length: 10;
    } // List is not required but if it is present, it should contain exactly 10 items
    list3: {
        list_length: [3, 10];
    } // List is not required but if it is present, it should has from 3 to 10 items
}
```

Error codes: 'FORMAT\_ERROR', 'TOO\_FEW\_ITEMS', 'TOO\_MANY\_\\ITEMS'

Tests
-----

[](#tests)

To run all tests, enter `php ./vendor/bin/phpunit --verbose`.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

1976d ago

### Community

Maintainers

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

---

Top Contributors

[![marcincuber](https://avatars.githubusercontent.com/u/5611060?v=4)](https://github.com/marcincuber "marcincuber (1 commits)")[![umotif-ymansoor](https://avatars.githubusercontent.com/u/75616914?v=4)](https://github.com/umotif-ymansoor "umotif-ymansoor (1 commits)")

---

Tags

validatorlivr

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/umotif-php-livr-extra/health.svg)

```
[![Health](https://phpackages.com/badges/umotif-php-livr-extra/health.svg)](https://phpackages.com/packages/umotif-php-livr-extra)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M381](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M205](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64236.9M185](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15544.9M188](/packages/laminas-laminas-validator)

PHPackages © 2026

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