PHPackages                             artisaninweb/laravel-formvalidation-helper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. artisaninweb/laravel-formvalidation-helper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

artisaninweb/laravel-formvalidation-helper
==========================================

A helper to easy validate laravel forms.

0.1(11y ago)248[1 issues](https://github.com/artisaninweb/laravel-formvalidation-helper/issues)MITPHPPHP &gt;=5.3.0

Since Aug 7Pushed 11y agoCompare

[ Source](https://github.com/artisaninweb/laravel-formvalidation-helper)[ Packagist](https://packagist.org/packages/artisaninweb/laravel-formvalidation-helper)[ RSS](/packages/artisaninweb-laravel-formvalidation-helper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel form validation helper
==============================

[](#laravel-form-validation-helper)

A helper to easy validate laravel forms.

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

[](#installation)

Add `artisaninweb/laravel-formvalidation-helper` as requirement to composer.json

```
{
    "require": {
        "artisaninweb/laravel-formvalidation-helper": "0.1.*"
    }
}
```

Replace `'Illuminate\Html\HtmlServiceProvider'` with `'Artisaninweb\FormValidationHelper\ServiceProvider'`

Replace in aliases `'Form' => 'Illuminate\Support\Facades\Form'` with `'Form' => 'Artisaninweb\FormValidationHelper\Facades\Form'`

Usage
=====

[](#usage)

The parameters to use:

`required` (bool): Make the field required.
`rules` (string): Specify the rules of the validation.
`error-class` (string): Add a custom class to the form field on error (optional, default: 'error').

```
Form::text('field-name','field-value',[required' => true, 'rules' => 'required|email', 'error-class' => 'form-error']);
```

To output the error you can place this in your view.
Default the error wil come from the validator, you can edit this in `/app/lang/{lang}/validation.php`.

```
// Replace the error with you own.
Form::error('field-name','You can put a custom html error here.');

// Only replace the html tags
Form::error('field-name',':message');
```

Example:

```
echo Form::open(['url' => '/login']);
echo Form::text('email', '', ['required' => true, 'rules' => 'required|email', 'error-class' => 'form-error']);
echo Form::error('email', 'This field is required.');
echo Form::password('password', '', ['required' => true, 'rules' => 'required|min:8', 'error-class' => 'form-error']);
echo Form::error('password', 'This field is required.');
echo Form::submit('Login');
echo Form::close();
```

After a form submit you can validate the last submitted form.

```
Form::validate(function($postData,$passes,$messages) {
    var_dump($postData);
    var_dump($passes);
    var_dump($messages);
});
```

TwigBridge
==========

[](#twigbridge)

If you are using `https://github.com/rcrowe/TwigBridge` as TwigBirdge in Laravel (like i do).
You can replace `'TwigBridge\Extension\Laravel\Form'` with `'Artisaninweb\FormValidationHelper\Extension\TwigBridgeForm'`.
You will find this in `app/config/packages/rcrowe/twigbridge/extensions`.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

4296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/044816312f6d55ddca317d2c0a31c31e1572f3756523d1e37bc5f5983249d310?d=identicon)[artisaninweb](/maintainers/artisaninweb)

---

Tags

laravelhelpervalidateform

### Embed Badge

![Health badge](/badges/artisaninweb-laravel-formvalidation-helper/health.svg)

```
[![Health](https://phpackages.com/badges/artisaninweb-laravel-formvalidation-helper/health.svg)](https://phpackages.com/packages/artisaninweb-laravel-formvalidation-helper)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[anahkiasen/former

A powerful form builder

1.4k1.4M14](/packages/anahkiasen-former)[kevinlebrun/password.php

Helpers for password generation and validation

17142.3k1](/packages/kevinlebrun-passwordphp)

PHPackages © 2026

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