PHPackages                             radic/laraval - 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. radic/laraval

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

radic/laraval
=============

Laravel 5 jQuery Validation. Full client side, full AJAX, hybrid and other modes. Bootstrap and other frameworks supported.

1.0.6(10y ago)132.4k3TypeScriptPHP &gt;=5.5.9

Since Oct 19Pushed 10y ago3 watchersCompare

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

READMEChangelogDependencies (1)Versions (13)Used By (0)

[![Laravel logo](https://camo.githubusercontent.com/f4160380c8933ec4e23dfb2e993b90fdef6be139c28f8b26860412911013d7a9/687474703a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f6c61726176656c2d6c6f676f2e706e67)](https://camo.githubusercontent.com/f4160380c8933ec4e23dfb2e993b90fdef6be139c28f8b26860412911013d7a9/687474703a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f6c61726176656c2d6c6f676f2e706e67) Laraval
=============================================================================================================================================================================================================================================================================================================================================================================================================================

[](#--laraval)

Laravel 5 jQuery form validation using Laravel's Validator rules. Client &amp; Server(AJAX) validation strategies.

[![License](https://camo.githubusercontent.com/30597ff9a350144f03bffdd9183e16468e0b3ca1193e1d08591d992622738d55/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://tldrlegal.com/license/mit-license)

- You can use the `javascript` library stand-alone. The provided PHP library is optional.
- Stand alone can **not** use the `database` validation rules.
- Error messages can be imported straight from your `Application`'s language files.
- The `Laraval` PHP library provides more then a few conveinence methods. It also provides the logic for `AJAX` validation, which enables *all* validation rule methods.
- Depends on `jQuery` and [`jquery.validate`](http://jqueryvalidation.org) JS libraries.
- Multimple demos (local, ajax, etc) provided using Bootstrap 3.

The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.

[**Documentation**](http://robin.radic.nl/laraval)

[**Demonstration**](http://robin.radic.nl/laraval)

Quick Impression
----------------

[](#quick-impression)

```
jquery.validate.laravel.min.js
Size:           16.01 Kb
Gzip Size:      4.79 Kb

```

### Client side

[](#client-side)

By including the `jquery.validate.js` &amp; `jquery.validate.laraval.js` you will be able to use Laravel's (5.x) validation rules like this:

```

```

### Local example

[](#local-example)

```
$rules = [
    'title'         => 'required|max:15|alpha_num',
    'body'          => 'required|max:255|alpha_dash',
    'between_dates' => 'after:1/1/2000|before:1/1/2010|date',
    'user_email'    => 'required|email',
    'url'           => 'required|url',
    'is_admin'      => 'boolean',
    'active'        => 'boolean'
];
return View::make('myview', [
    'rules' => $rules
]);
```

view:

```

{{ Laraval::local('#demo-form', $rules) }}
```

### AJAX example

[](#ajax-example)

```
Route::post('validate', function(Request $request){
    $rules = [
        'title'         => 'required|max:15|alpha_num',
        'body'          => 'required|max:255|alpha_dash',
        'between_dates' => 'after:1/1/2000|before:1/1/2010|date'
    ]
    return Laraval::make('ajax', $rules)->validate($request);
});
```

view:

```

{{ Laraval::ajax('#demo-form', [ 'url' => url('validate') ]) }}
```

### Copyright/License

[](#copyrightlicense)

Copyright 2015 [Robin Radic](https://github.com/RobinRadic) - [MIT Licensed](http://radic.mit-license.org)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

12

Last Release

3674d ago

Major Versions

0.3.0 → 1.0.02015-10-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/303828383a9c2bf382436a61f4471425428b28c095c6df9a9714444cbc163538?d=identicon)[radic](/maintainers/radic)

### Embed Badge

![Health badge](/badges/radic-laraval/health.svg)

```
[![Health](https://phpackages.com/badges/radic-laraval/health.svg)](https://phpackages.com/packages/radic-laraval)
```

###  Alternatives

[webmozart/assert

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

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[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)

PHPackages © 2026

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