This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

General Setting

Installs: 53

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0


dev-master 2020-01-07 12:42 UTC

This package is auto-updated.

Last update: 2021-11-07 16:56:24 UTC


General Setting


The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2generalsetting/yii2generalsetting "*"

or add

"yii2generalsetting/yii2generalsetting": "*"

to the require section of your composer.json file.

Migrate First

php yii migrate --migrationPath=vendor/groovy/src/migrations


Once the extension is installed, simply use it in your code by :

'components' => [
    'getsettings' => [
        'class' => 'vendor\yii2generalsetting\yii2generalsetting\src\components\Groovysettings',

'modules' => [
    'allsettings' => [
        'class' => 'vendor\yii2generalsetting\yii2generalsetting\src\modules\allsettings\Module',

open link YOUR_SITE_URL/allsetting

Get Data 

Yii::$app->getsettings->Getallsttings('json'); //get json format
Yii::$app->getsettings->Getallsttings('array'); //get array format

//Single Value By Name
$apiKey = Yii::$app->getsettings->Getcategorysingleconfig('Front Settings','Google Key'); //Front Settings = Setting Name and Google Key = Field Name

if You old user so please add ENUM (textarea) in s_type (all_setting_fields table )
Other Wise got a error 
Thank you