PHPackages                             arcanisgk/date-validator - 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. arcanisgk/date-validator

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

arcanisgk/date-validator
========================

Date Validator: is a library that allows any development to validate if a string is a datetime, date or time format or validate custom format

v1.0.1(3y ago)77MITPHPPHP &gt;=7.4

Since Nov 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/arcanisgk/Date-Validator)[ Packagist](https://packagist.org/packages/arcanisgk/date-validator)[ RSS](/packages/arcanisgk-date-validator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Date-Validator
==============

[](#date-validator)

Validation of format is right for given datetime,date or time string variable.

Acronym: \[Date-Validator\].

Name: Date-Validator.

Dependencies: Stand Alone / PHP v7.4.

What does *\[Date-Validator\]* do?
----------------------------------

[](#what-does-date-validator-do)

is a very simple PHP \[Date-Validator\] implementation that allows you to easily validate if the PHP variable passed is a string with valid datetime, date, time format.

Why use *\[Date-Validator\]*?
-----------------------------

[](#why-use-date-validator)

Developers need the ability to validate if variable meaning a datetime, date or time have a right format, this helps to validate some format dependencies that must have a datetime, date or time string.

Help to improve *\[Date-Validator\]*?
-------------------------------------

[](#help-to-improve-date-validator)

if you want to collaborate with the development of the library; You can express your ideas or report any situation related to this in:

*\[Date-Validator\]* Configuration:
-----------------------------------

[](#date-validator-configuration)

None necessary.

*\[Date-Validator\]* Installation:
----------------------------------

[](#date-validator-installation)

```
composer require arcanisgk/date-validator
```

*\[Date-Validator\]* Usage:
---------------------------

[](#date-validator-usage)

### Instance of Class:

[](#instance-of-class)

```
use IcarosNet\DateValidator\DateValidator;
require __DIR__.'\..\vendor\autoload.php';
$date_validator = new DateValidator();
```

### Implementation of Class:

[](#implementation-of-class)

```
if ($date_validator->ValidateDate('10/10/1999 20:40')) {
    echo 'Correct date string';
}

if ($date_validator->ValidateDate('XXX10/10/1999 20:40')) {
     echo 'incorrect date string';
}

if($date_validator->addFormat('d--m--Y H%i')->ValidateDate('09--09--2010 20%40')){
     echo 'Correct new date format string using % separator';
}
```

### avoid standard and use only custom:

[](#avoid-standard-and-use-only-custom)

```
if ($date_validator->ValidateCustomFormatAndDate('09--09--2010','d--m--Y')) {
    echo 'Correct date string';
}
```

### Contributors

[](#contributors)

- (c) 2020 - 2022 Walter Francisco Núñez Cruz  [![Donate](https://camo.githubusercontent.com/a52580597c15a106bc32b9769f9a7327c177653898360f8052c301029f51a7b7/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d446f6e617465266d6573736167653d50617950616c2e6d652f776e756e657a383626636f6c6f723d627269676874677265656e)](https://www.paypal.me/wnunez86/4.99USD)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

1271d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f826ead58519f4ed93071a8c7264620cfcb687bca24ec0a0fb2da936bf88d9e1?d=identicon)[ArcanisGK](/maintainers/ArcanisGK)

---

Top Contributors

[![wnunezc](https://avatars.githubusercontent.com/u/1207306?v=4)](https://github.com/wnunezc "wnunezc (3 commits)")

### Embed Badge

![Health badge](/badges/arcanisgk-date-validator/health.svg)

```
[![Health](https://phpackages.com/badges/arcanisgk-date-validator/health.svg)](https://phpackages.com/packages/arcanisgk-date-validator)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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