macgyer / yii2-data-uri-validator
Data URI validator for Yii2
Installs: 2 636
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0
This package is auto-updated.
Last update: 2024-10-10 08:30:19 UTC
README
Data URI validator for Yii2 framework
Installation
The preferred way of installation is through Composer. If you don't have Composer you can get it here: https://getcomposer.org/
To install the package add the following to the require
section of your composer.json:
"require": {
"macgyer/yii2-data-uri-validator": "*"
},
Usage
Just add the validator to your Model class:
// rules
public function rules()
{
return [
// more rules
['some_property', \macgyer\yii2dataurivalidator\DataUriValidator::className()],
];
}