2017 © Pedro Peláez
 

yii2-extension yii2-blog

Blogging module support for Yii2

image

amilna/yii2-blog

Blogging module support for Yii2

  • Tuesday, April 11, 2017
  • by aaiyo
  • Repository
  • 6 Watchers
  • 11 Stars
  • 467 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 10 Forks
  • 2 Open issues
  • 1 Versions
  • 3 % Grown

The README.md

Blog for Yii

Blogging module support for Yii2 (includes banner and gallery, support mysql and postgresql), (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Since this package do not have stable release on packagist, you should use these settings in your composer.json file :, (*3)

"minimum-stability": "dev",
"prefer-stable": true,
"repositories":[

        {
            "type": "vcs",
            "url": "https://github.com/aaiyo/yii2-kcfinder"
        }   
   ]

After, either run, (*4)

php composer.phar require --prefer-dist amilna/yii2-blog "dev-master"

or add, (*5)

"amilna/yii2-blog": "dev-master"

to the require section of your composer.json file., (*6)

run migration for database, (*7)

./yii migrate --migrationPath=@amilna/blog/migrations

add in modules section of main config, (*8)

    'gridview' =>  [
        'class' => 'kartik\grid\Module',
    ],
    'blog' => [
        'class' => 'amilna\blog\Module',
        /* 'userClass' => 'dektrium\user\models\User', // example if use another user class */
    ],

Usage

Once the extension is installed, check the url: [your application base url]/index.php/blog, (*9)

The Versions