PHPackages                             ggbear/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. ggbear/validation

ActiveLibrary

ggbear/validation
=================

Standalone library to use Illuminate\\Validation package outside the Laravel framework.

1.0.1(5y ago)117MITPHP

Since Jul 25Pushed 5y agoCompare

[ Source](https://github.com/sanduluca/validation-factory)[ Packagist](https://packagist.org/packages/ggbear/validation)[ RSS](/packages/ggbear-validation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Validation
==========

[](#validation)

Standalone library to use Illuminate\\Validation package outside the Laravel framework.

Install Validation:
-------------------

[](#install-validation)

- execute

```
composer require ggbear/validation
```

Usage
-----

[](#usage)

```
require_once __DIR__ . '\..\vendor\autoload.php';
/** @var Factory $validatorFactory */
$validatorFactory = new ValidatorFactory();

$number = '123456789012a';
$id = 123;
$string = 'string value';
$channel = 'UNKNOWN';

$input = [
    'number' => $number,
    'id' => $id,
    'string' => $string,
    'channel' => $channel
];
$rules = [
    'number' => 'required|integer|digits_between:11,12',
    'id' => 'required|integer',
    'string' => 'required|string',
    'channel' => 'required|string|in:WEB,API,SOCKET',
];
$validator = $validatorFactory->make($input, $rules);
```

This will return an instance of `Illuminate\Validation\Validator::class`.

```
if ($validator->fails()) {
    print_r($validator->errors()->toArray());
} else {
    echo 'Validaton passed.' . PHP_EOL;
}
```

You can learn more about the *Laravel Validator* in the [official documentation website](https://laravel.com/docs/7.x/validation).

### About validation rules

[](#about-validation-rules)

-

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity56

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

Every ~0 days

Total

2

Last Release

2123d ago

### Community

Maintainers

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

### Embed Badge

![Health badge](/badges/ggbear-validation/health.svg)

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

###  Alternatives

[livewire/livewire

A front-end framework for Laravel.

23.5k75.5M1.8k](/packages/livewire-livewire)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

74310.9M66](/packages/laravel-mcp)

PHPackages © 2026

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