98 lines
3.8 KiB
JSON
98 lines
3.8 KiB
JSON
{
|
|
"name": "diecoding/yii2-toastr",
|
|
"description": "Simple flash toastr notifications for Yii2",
|
|
"type": "library",
|
|
"keywords": [
|
|
"yii2",
|
|
"widget",
|
|
"session",
|
|
"flash",
|
|
"toastr",
|
|
"notification",
|
|
"jquery"
|
|
],
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Sugeng Sulistiyawan",
|
|
"homepage": "https://github.com/wanforge",
|
|
"role": "Developer"
|
|
}
|
|
],
|
|
"support": {
|
|
"issues": "https://github.com/wanforge/yii2-toastr/issues",
|
|
"source": "https://github.com/wanforge/yii2-toastr"
|
|
},
|
|
"require": {
|
|
"php": ">=7.4.0",
|
|
"yiisoft/yii2": "~2.0.14",
|
|
"npm-asset/toastr": "~2.1.0"
|
|
},
|
|
"require-dev": {
|
|
"friendsofphp/php-cs-fixer": "^3.84",
|
|
"phpstan/phpstan": "^2.1",
|
|
"phpunit/phpunit": "^9.6",
|
|
"squizlabs/php_codesniffer": "^3.13"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"diecoding\\toastr\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"diecoding\\toastr\\tests\\": "tests/"
|
|
}
|
|
},
|
|
"repositories": [
|
|
{
|
|
"type": "composer",
|
|
"url": "https://asset-packagist.org"
|
|
}
|
|
],
|
|
"config": {
|
|
"allow-plugins": {
|
|
"yiisoft/yii2-composer": true
|
|
},
|
|
"optimize-autoloader": true,
|
|
"sort-packages": true
|
|
},
|
|
"scripts": {
|
|
"test": "phpunit tests/",
|
|
"test:stable": "phpunit tests/WidgetTest.php tests/ToastrAssetTest.php tests/ToastrFlashTest.php",
|
|
"test:all": "phpunit",
|
|
"test:verbose": "phpunit tests/WidgetTest.php tests/ToastrAssetTest.php tests/ToastrFlashTest.php --verbose",
|
|
"test:coverage": "php -d pcov.enabled=1 -d pcov.directory=./src vendor/bin/phpunit --coverage-text --coverage-html=coverage-html",
|
|
"test:coverage-min": "php -d pcov.enabled=1 -d pcov.directory=./src vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml --coverage-html=coverage-html",
|
|
"test:coverage-text": "php -d pcov.enabled=1 -d pcov.directory=./src vendor/bin/phpunit --coverage-text",
|
|
"test:coverage-clover": "php -d pcov.enabled=1 -d pcov.directory=./src vendor/bin/phpunit --coverage-clover=coverage.xml",
|
|
"test:coverage-html": "php -d pcov.enabled=1 -d pcov.directory=./src vendor/bin/phpunit --coverage-html=coverage-html",
|
|
"cs": "php-cs-fixer fix --dry-run --diff",
|
|
"cs:fix": "php-cs-fixer fix",
|
|
"phpcs": "phpcs src tests --standard=PSR12 --warning-severity=0",
|
|
"phpcs:fix": "phpcbf src tests --standard=PSR12",
|
|
"phpstan": "phpstan analyse src tests --level=5",
|
|
"quality": ["@cs", "@phpcs", "@phpstan"],
|
|
"ci": "./simulate-ci.sh"
|
|
},
|
|
"scripts-descriptions": {
|
|
"test": "Run the stable test suite",
|
|
"test:all": "Run all tests including experimental ones",
|
|
"test:verbose": "Run tests with verbose output",
|
|
"test:coverage": "Run tests with text and HTML coverage reports (using PCOV)",
|
|
"test:coverage-min": "Run tests with text, clover and HTML coverage reports (using PCOV)",
|
|
"test:coverage-text": "Run tests with text coverage report only (using PCOV)",
|
|
"test:coverage-clover": "Run tests with clover XML coverage report (using PCOV)",
|
|
"test:coverage-html": "Run tests with HTML coverage report (using PCOV)",
|
|
"cs": "Check code style with PHP CS Fixer (dry run)",
|
|
"cs:fix": "Fix code style with PHP CS Fixer",
|
|
"phpcs": "Check coding standards with PHP CodeSniffer",
|
|
"phpcs:fix": "Fix coding standards with PHP CodeSniffer",
|
|
"phpstan": "Run static analysis with PHPStan",
|
|
"quality": "Run all code quality checks",
|
|
"ci": "Run local CI simulation"
|
|
},
|
|
"minimum-stability": "stable",
|
|
"prefer-stable": true
|
|
}
|