PHPackages                             wojciechmruk/iso8610datevalidator - 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. wojciechmruk/iso8610datevalidator

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

wojciechmruk/iso8610datevalidator
=================================

Laravel ISO 8610 Validator.

1.0(7y ago)015MITPHPPHP &gt;=5.4.0

Since Aug 30Pushed 7y agoCompare

[ Source](https://github.com/wojciechmruk/laravel-iso8610-date-validator)[ Packagist](https://packagist.org/packages/wojciechmruk/iso8610datevalidator)[ RSS](/packages/wojciechmruk-iso8610datevalidator/feed)WikiDiscussions master Synced 3w ago

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

Iso8601 Validator
=================

[](#iso8601-validator)

Install via Composer
--------------------

[](#install-via-composer)

You may install this package by issuing the Composer in your terminal:

```
composer require "wojciechmruk/iso8610datevalidator"
```

Register new rules
------------------

[](#register-new-rules)

Update **app\\Providers\\AppServiceProvider.php** by adding following lines into boot method.

```
Validator::extend('iso_date', 'WojciechMruk\LaravelValidator\Iso8610DateValidator@validate');
Validator::extend('date_not_before', 'WojciechMruk\LaravelValidator\DateRangeValidator@notFromThePast');
Validator::extend('date_before', 'WojciechMruk\LaravelValidator\DateRangeValidator@fromThePast');
Validator::extend('date_not_after', 'WojciechMruk\LaravelValidator\DateRangeValidator@notFromTheFuture');
Validator::extend('date_after', 'WojciechMruk\LaravelValidator\DateRangeValidator@fromTheFuture');
```

Defining The Error Message
--------------------------

[](#defining-the-error-message)

You will also need to define an error message for your custom rule.

Edit: **resources\\lang\\en\\validation.php**

Add this to the array:

```
    'date_iso'              => 'Provided date should be in ISO 8601 format.',
    'date_not_before'       => 'Provided date can not be the past date.',
    'date_before'           => 'Provided date must be the past date.',
    'date_not_after'        => 'Provided date can not be the future date.',
    'date_after'            => 'Provided date must be the future date.',
```

Basic Usage
-----------

[](#basic-usage)

- check iso

```
 $this->validate($request, [
        'date' => 'required|date_iso',
    ]);
```

- check not before date

```
 $this->validate($request, [
        'date' => 'required|date_not_before',
    ]);
```

- check before date

```
 $this->validate($request, [
        'date' => 'required|date_before',
    ]);
```

- check not future date

```
 $this->validate($request, [
        'date' => 'required|date_not_after',
    ]);
```

- check future date

```
 $this->validate($request, [
        'date' => 'required|date_after',
    ]);
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

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

Unknown

Total

1

Last Release

2858d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6472147?v=4)[wojciechmruk](/maintainers/wojciechmruk)[@wojciechmruk](https://github.com/wojciechmruk)

---

Top Contributors

[![wojciechmruk](https://avatars.githubusercontent.com/u/6472147?v=4)](https://github.com/wojciechmruk "wojciechmruk (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wojciechmruk-iso8610datevalidator/health.svg)

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

###  Alternatives

[illuminate/validation

The Illuminate Validation package.

18837.7M1.6k](/packages/illuminate-validation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2422.3M6](/packages/laravel-validation-rules-credit-card)[danielebarbaro/laravel-vat-eu-validator

A simple package that validates EU VAT numbers against the central ec.europa.eu database

41401.6k](/packages/danielebarbaro-laravel-vat-eu-validator)

PHPackages © 2026

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