https://github.com/coderius/yii2-comments
Yii2 comments module to easily add comments for a website.
https://github.com/coderius/yii2-comments
Last synced: 3 months ago
JSON representation
Yii2 comments module to easily add comments for a website.
- Host: GitHub
- URL: https://github.com/coderius/yii2-comments
- Owner: coderius
- License: mit
- Created: 2021-01-10T18:49:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T23:15:52.000Z (almost 5 years ago)
- Last Synced: 2025-03-18T19:56:02.234Z (11 months ago)
- Language: PHP
- Size: 433 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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:
```php
public function getAvatar()
{
// your custom code
}
public function getUsername()
{
// your custom code
}
```
### Widget with minimum options
## Testing
Run tests in extention folder.
```bash
$ ./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
- [Sergio Coderius](https://github.com/coderius)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.