deka6pb/yii2-date-unique-range-validator

Yii 2 Validator for unique range dates

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

This package is not auto-updated.

Last update: 2024-09-28 19:09:37 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']],
        ...
    ];
}