PHPackages                             lexal/laravel-step-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. lexal/laravel-step-validator

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

lexal/laravel-step-validator
============================

Laravel Step validator.

v3.0.0(2mo ago)13MITPHPPHP &gt;=8.2CI passing

Since Mar 3Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/lexalium/laravel-step-validator)[ Packagist](https://packagist.org/packages/lexal/laravel-step-validator)[ RSS](/packages/lexal-laravel-step-validator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (20)Versions (5)Used By (0)

Step Validator for Laravel
==========================

[](#step-validator-for-laravel)

[![PHPUnit, PHPCS, PHPStan Tests](https://github.com/lexalium/laravel-step-validator/actions/workflows/tests.yml/badge.svg)](https://github.com/lexalium/laravel-step-validator/actions/workflows/tests.yml)

This package validates step data on the `BeforeHandleStep` event from [Stepped Form](https://github.com/lexalium/stepped-form).

Requirements
------------

[](#requirements)

**PHP:** &gt;=8.2

**Laravel:** ^11.0 || ^12.0

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

[](#installation)

Via Composer

```
composer require lexal/laravel-step-validator

```

Usage
-----

[](#usage)

Implement `ValidatableStepInterface` on your step and the the listener will validate step data before the step is handled. The validator passes `RulesDefinition` data directly to Laravel's validator factory method.

```
use Lexal\LaravelStepValidator\RulesDefinition;
use Lexal\LaravelStepValidator\Steps\ValidatableStepInterface;
use Lexal\SteppedForm\Steps\RenderStepInterface;

final class CustomerStep implements RenderStepInterface, ValidatableStepInterface
{
    public function getRulesDefinition(mixed $entity): RulesDefinition
    {
        return new RulesDefinition(
            /* rules */,
            /* messages (default - empty array) */,
            /* custom attributes (default - empty array) */,
        );
    }
}
```

---

License
-------

[](#license)

Laravel Step Validator is licensed under the MIT License. See [LICENSE](LICENSE) for the full license text.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance86

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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

Total

4

Last Release

70d ago

Major Versions

v1.0.0 → v2.0.02023-12-28

v2.0.0 → 3.0.x-dev2026-04-23

PHP version history (3 changes)v1.0.0PHP ^8.0

v2.0.0PHP &gt;=8.1

3.0.x-devPHP &gt;=8.2

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelstepped-formstep validatormulti-form step validator

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lexal-laravel-step-validator/health.svg)

```
[![Health](https://phpackages.com/badges/lexal-laravel-step-validator/health.svg)](https://phpackages.com/packages/lexal-laravel-step-validator)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M305](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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