platx/yii2-easter-egg

This package is abandoned and no longer maintained. No replacement package was suggested.

For individual use

Installs: 1 182

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2015-11-13 14:40 UTC

README

For individual use

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist platx/yii2-easter-egg "*"

or add

"platx/yii2-easter-egg": "*"

to the require section of your composer.json file.

Usage

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

public function actions()
{
    return [
        'easter-egg' => [
            'class' => 'platx\easteregg\EasterEggAction',
        ],
    ];
}

After this to view easter egg on site go to:

/controller/easter-egg?token=powered