PHPackages                             ahmetbarut/laravel-jq-validation - 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. ahmetbarut/laravel-jq-validation

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

ahmetbarut/laravel-jq-validation
================================

v1.0.2(4y ago)320MITPHP

Since Aug 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ahmetbarut/laravel-jquery-simple-validation)[ Packagist](https://packagist.org/packages/ahmetbarut/laravel-jq-validation)[ RSS](/packages/ahmetbarut-laravel-jq-validation/feed)WikiDiscussions master Synced today

READMEChangelog (3)DependenciesVersions (5)Used By (0)

Laravel Jquery Doğrulama
========================

[](#laravel-jquery-doğrulama)

Laravel ve jquery ile sayfa yenilemeden doğrulama işlemi yaptırmak.

Kurulum
=======

[](#kurulum)

```
 composer require ahmetbarut/laravel-jq-validation

```

Kurulduktan hemen sonra servisi yayınlayın. `php artisan vendor:publish` komutunu çalıştırın, ardından listeden `ahmetbarut\Validation\Provider\ValidationServiceProvider`'in sıra numarasını yazıp onaylayın. `Publish` yaptıktan sonra `public/laravel-validation/main.js` dosyasını `view`de dahil edin.

Kullanım
========

[](#kullanım)

Formda Kullanımı
----------------

[](#formda-kullanımı)

`validateForm` yöntemi, 4 parametre alır,`validateForm(HTMLElementSelector, requestURI, METHOD, ErrorClass)`

```

        ...

```

Şimdi arka uçtan bakalım. Sadece zorunlu alanları geçmezse geriye mesaj döndürelim:

```
use Form;
use Illuminate\Http\Request;
public function index(Request $request){
    Form::setRules([
        'username' => 'required|string',
        'password' => 'required'
    ])->make($request);

    // Ve doğrulama başarısız olursa geriye mesajları döndürelim.
    if(false !== Form::getErrors()){
        return response()->json(
            [
               'errors' => Form::getErrors()
            ], 422
        );
    }
}
```

Örnek Dönüş : Hatalı form alanı yoksa `getErrors` false döndürür, varsa da input alanları ve hata mesajlarını dizi olarak döndürür. Örn:

```
    [
        0 => [
            'rule' => 'rule_adi',
            'message' => 'Hata mesajı!'
        ]
    ]
```

Mesaj Döndürelim
----------------

[](#mesaj-döndürelim)

```
Form::setRules([
            'username' => 'required|string|max:35',
            'password' => 'required|integer|max:35'
        ])->setMessages([
            'username.required' => 'Kullanıcı adı alanı zorunludur!',
            'password.integer' => 'Parola alanı sayılardan oluşmalıdır '
        ])->make(
            $request
        );
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

3

Last Release

1666d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36641723?v=4)[Ahmet Barut](/maintainers/ahmetbarut)[@ahmetbarut](https://github.com/ahmetbarut)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ahmetbarut-laravel-jq-validation/health.svg)

```
[![Health](https://phpackages.com/badges/ahmetbarut-laravel-jq-validation/health.svg)](https://phpackages.com/packages/ahmetbarut-laravel-jq-validation)
```

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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