Skip to content

coderius/yii2-comments

Repository files navigation

Yii2 comments module

About

Installation

Usage

Notes:

  1. You can implement your own methods getAvatar and getUsername in the userIdentityClass. Just create this methods in your User model. For example:
public function getAvatar()
{
    // your custom code
}

public function getUsername()
{
    // your custom code
}

Widget with minimum options

Testing

Run tests in extention folder.

$ ./vendor/bin/phpunit

Note! For running all tests needed upload all dependencies by composer. If tested single extention, then run command from root directory where located extention:

composer update

When all dependencies downloaded run all tests in terminal from root folder:

./vendor/bin/phpunit tests

Or for only unit:

./vendor/bin/phpunit --testsuite Unit

If extention tested in app, then set correct path to phpunit and run some commands.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Yii2 comments module to easily add comments for a website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages