PHPackages                             laasti/valitron-provider - 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. laasti/valitron-provider

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

laasti/valitron-provider
========================

A league/container v2 service provider for vlucas/valitron.

v2.0.1(10y ago)0305MITPHPPHP &gt;=5.4.0CI failing

Since Aug 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/laasti/valitron-provider)[ Packagist](https://packagist.org/packages/laasti/valitron-provider)[ RSS](/packages/laasti-valitron-provider/feed)WikiDiscussions master Synced 1mo ago

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

Laasti/valitron-provider
========================

[](#laastivalitron-provider)

A league/container v2 service provider for vlucas/valitron.

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

[](#installation)

```
composer require laasti/valitron-provider

```

Usage
-----

[](#usage)

```
$container = new League\Container\Container;
$container->add('config', [
    'valitron' =>[
        'locale' => 'fr',//if not specified, attempts to use config.locale in the container, defaults to en,
        'locales_dir' => __DIR__,//defaults, to Valitron's language files directory
        //Additional rules to add to Valitron, any php callbacks are accepted
        'rules' => [
            ['my_rule', 'my_callback', 'My message']
        ]
    ]
]);
$container->addServiceProvider('Laasti\ValitronProvider\ValitronProvider');

//The arguments are the same as Valitron's constructor
$validator = $container->get('Valitron\Validator', [$data]);
```

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

[](#contributing)

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

History
-------

[](#history)

See CHANGELOG.md for more information.

Credits
-------

[](#credits)

Author: Sonia Marquette (@nebulousGirl)

License
-------

[](#license)

Released under the MIT License. See LICENSE.txt file.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~79 days

Total

4

Last Release

3680d ago

Major Versions

v1.1 → v2.02016-02-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/48bb7fdba3e642d3dc668b9ff03ff949b9043f58096f3c85c13de508b53e7d68?d=identicon)[nebulousGirl](/maintainers/nebulousGirl)

---

Top Contributors

[![nebulousGirl](https://avatars.githubusercontent.com/u/1899256?v=4)](https://github.com/nebulousGirl "nebulousGirl (5 commits)")

### Embed Badge

![Health badge](/badges/laasti-valitron-provider/health.svg)

```
[![Health](https://phpackages.com/badges/laasti-valitron-provider/health.svg)](https://phpackages.com/packages/laasti-valitron-provider)
```

###  Alternatives

[webmozart/assert

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

7.6k894.0M1.2k](/packages/webmozart-assert)[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)[xemlock/htmlpurifier-html5

HTML5 support for HTML Purifier

1052.9M11](/packages/xemlock-htmlpurifier-html5)

PHPackages © 2026

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