aindot/extra-rules

A package that include extra rules for Laravel, Kuwait Civil ID validation, ISBN10, ISBN13 and more in development.

Maintainers

Package info

github.com/aindot/extra_rules

Homepage

pkg:composer/aindot/extra-rules

Fund package maintenance!

aindot

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.3 2025-09-07 01:28 UTC

This package is auto-updated.

Last update: 2026-03-07 02:35:33 UTC


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.