light / functions
Yii2 shortcut functions
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/light/functions
Requires
- yiisoft/yii2: ~2.0.5
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2025-10-08 21:34:22 UTC
README
Easily using some helpers handsome.
Functions
route=>yii\helpers\Url::toRouteurl=> 'yii\helpers\Url::to'sessionSet or get sessionflash=>Yii::$app->session->setFlash($type, $message[, $removeAfterAccess])cookieSet or get cookiedel_cookiedelete the cookie__=>Yii::t($category, $messsage[, $params][, $language])
Validators
is_email($string[, $options])Check string if a valid email.is_url($string[, $options])Check string if a valid url.