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

ActiveLibrary

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 1mo 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 37% 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

2812d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c6418cb3adcef6bdaac749fcbe5f7ca33faea4773847fd817c44bda6f2eed4a5?d=identicon)[wojciechmruk](/maintainers/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

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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