PHPackages                             hossein142001/yii2-my-image-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. hossein142001/yii2-my-image-validator

ActiveYii2-extension[Validation &amp; Sanitization](/categories/validation)

hossein142001/yii2-my-image-validator
=====================================

Yii2 extension to help in the image validator for ratio and resolution

059PHP

Since Dec 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hossein142001/yii2-my-image-validator)[ Packagist](https://packagist.org/packages/hossein142001/yii2-my-image-validator)[ RSS](/packages/hossein142001-yii2-my-image-validator/feed)WikiDiscussions main Synced 1mo ago

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

Yii2 my image validator
=======================

[](#yii2-my-image-validator)

Yii2 extension to help in the creation of automated console scripts. It helps to manage the execution of console scripts, for example avoiding the execution if the previous cron is already running. It generates a history of cron executed, with the time spent and helps to batch processing the script.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist hossein142001/yii2-my-image-validator "*"

```

or add

```
"hossein142001/yii2-my-image-validator": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, you can use it as a helper in your console controller.

See the following example:

```
