deka6pb/yii2-date-unique-range-validator

Yii 2 Validator for unique range dates

Installs: 49

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/deka6pb/yii2-date-unique-range-validator

dev-master 2016-04-06 11:20 UTC

This package is not auto-updated.

Last update: 2025-09-28 00:57:06 UTC


README

Description

This module need to find the coordinates by address using The Google Maps Geocoding API or Yandex Geocoder API.

For example:

public function rules()
{
    return [
        ...
        ['date_from', DateUniqueRangeValidator::className(), 'to' => 'date_to', 'uniqueAttributes' => ['uniqueKey']],
        ...
    ];
}