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

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

digitonic/validation
====================

A Laravel custom validation package with some out of the box validators.

4.0.0(1y ago)22.5kMITPHPPHP ^7.2|^8.0CI failing

Since Mar 12Pushed 1y ago5 watchersCompare

[ Source](https://github.com/digitonic/validation)[ Packagist](https://packagist.org/packages/digitonic/validation)[ Docs](https://github.com/digitonic/validation)[ RSS](/packages/digitonic-validation/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (5)Versions (13)Used By (0)

Digitonic Validation
====================

[](#digitonic-validation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/32f60a06b54310bccb142ad7fab9a3daf2d9b4470fcd1a36271a70316febb013/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64696769746f6e69632f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitonic/validation)[![Build Status](https://camo.githubusercontent.com/2701c57bd976cf16689c44ba35434e47d0197e73cd10a784eb931ceccd133b39/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f64696769746f6e69632f76616c69646174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/digitonic/validation)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ac570247b73c34b1fda943241cf444e32864c3e8a2d9fdad93bf167bd82985cd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64696769746f6e69632f76616c69646174696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/digitonic/validation/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/5c279c75fed47c457f368362c9418dfd4e0dc6d021fa7461b65099820aacc427/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64696769746f6e69632f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/digitonic/validation)

This package will provide some custom validation out of the box in one single package. Using a configuration, you may create your own custom validations.

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

[](#installation)

You can install the package via composer:

```
$ composer require digitonic/validation
```

### Publish the config

[](#publish-the-config)

```
$ php artisan vendor:publish --provider="Digitonic\Validation\ValidationServiceProvider"
```

### Validators keys

[](#validators-keys)

##### Allowed Recipients

[](#allowed-recipients)

This validator will check for the validity of a given mobile phone number in a configured country.

```
allowed_recipients
```

##### CSV

[](#csv)

This validator will check the contents of a given CSV has at least one valid row.

```
csv
```

##### Phone Number Index

[](#phone-number-index)

This validator will check the contents of a passed CSV file for a given key and validate that this value is a valid mobile phone number within a configured country.

```
phone_number_index
```

### Password Validation

[](#password-validation)

Check to ensure a validated string contains one or more uppercase characters.

```
has_uppercase
```

Check to ensure a validated string contains one or more lowercase characters.

```
has_lowercase
```

Check to ensure a validated string contains one or more numeric characters.

```
has_numeric
```

Check to ensure a validated string contains one or more special characters.

```
has_special
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Yannick Glade](https://github.com/MrTammer)
- [Chris Crawford](https://github.com/ChrisCrawford1)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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 ~253 days

Recently: every ~452 days

Total

9

Last Release

592d ago

Major Versions

0.0.2 → 1.0.02019-06-03

1.1.0 → 2.0.02019-10-16

2.2.0 → 3.0.02022-07-27

3.0.0 → 4.0.02024-09-29

PHP version history (2 changes)2.0.0PHP ^7.2

2.2.0PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104549?v=4)[Steven Richardson](/maintainers/richdynamix)[@richdynamix](https://github.com/richdynamix)

---

Top Contributors

[![MrTammer](https://avatars.githubusercontent.com/u/15137960?v=4)](https://github.com/MrTammer "MrTammer (12 commits)")[![rodolfo-perez](https://avatars.githubusercontent.com/u/51618716?v=4)](https://github.com/rodolfo-perez "rodolfo-perez (4 commits)")[![briward](https://avatars.githubusercontent.com/u/865261?v=4)](https://github.com/briward "briward (1 commits)")

---

Tags

validationdigitonic

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[propaganistas/laravel-phone

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

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

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

759569.4k13](/packages/wendelladriel-laravel-validated-dto)[prettus/laravel-validation

Laravel Validation Service

40710.8M52](/packages/prettus-laravel-validation)

PHPackages © 2026

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