aindot / extra-rules
A package that include extra rules for Laravel, Kuwait Civil ID validation, ISBN10, ISBN13 and more in development.
Fund package maintenance!
v1.3
2025-09-07 01:28 UTC
Requires
- php: ^8.4
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
README
A package that include extra validation rules for Laravel, this package approach focuses on actual usage, for example the ISBN test must validate against different real-world examples.
The following are the validation rules that are in development or have been developed.
- Kuwaiti Civil ID.
- ISBN10.
- ISBN13.
- ISNI.
- ISWC.
- ISTC.
- ISAN.
- ISMN.
- ISRC.
- URN.
- NBN.
- DOI.
- ISSN.
- ISMN.
- EAN8.
- EAN13.
- GTIN13.
- IMEI.
- IMEISV.
- IMSI - A unique identifier for a mobile network subscriber.
- ICCID - A unique serial number identifying a sim card.
Installation
You can install the package via composer:
composer require aindot/extra-rules
Usage
$data = [ 'KuwaitiId' => $id, ]; $validator = Validator::make($data, [ 'KuwaitiId' => [new KuwaitCivilId], ]);
Credits
License
The MIT License (MIT). Please see License File for more information.