Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoinstall through https://github.com/phpstan/extension-installer #17

Merged
merged 6 commits into from
Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ master

* Enable strict typing
* Add coveralls and badges
* Autoinstall through https://github.com/phpstan/extension-installer
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ help:

app-composer-validate: ## to validate composer config
composer validate
composer normalize --dry-run

app-cs-check: ## to show files that need to be fixed
vendor/bin/php-cs-fixer fix --dry-run --diff --verbose
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ To use this extension, require it using [Composer](https://getcomposer.org/):
composer require --dev ekino/phpstan-banned-code
```

And include extension.neon in your project's PHPStan config:
When you use https://github.com/phpstan/extension-installer you are done.

If not, include `extension.neon` in your project's PHPStan config:

```
includes:
Expand Down
34 changes: 21 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
{
"name": "ekino/phpstan-banned-code",
"type": "library",
"type": "phpstan-extension",
"description": "Detected banned code using PHPStan",
"keywords": ["PHPStan", "Code Quality"],
"keywords": [
"PHPStan",
"Code Quality"
],
"homepage": "https://github.com/ekino/phpstan-banned-code",
"license": "MIT",
"authors": [
Expand All @@ -13,15 +16,26 @@
}
],
"require": {
"php": "^7.1",
"php": "^7.1",
"phpstan/phpstan": "^0.11"
},
"require-dev": {
"phpstan/phpstan-phpunit": "^0.11",
"phpunit/phpunit": "^7.2",
"friendsofphp/php-cs-fixer": "^2.12",
"friendsofphp/php-cs-fixer": "^2.12",
"localheinz/composer-normalize": "^1.3",
"phpstan/phpstan-phpunit": "^0.11",
"phpunit/phpunit": "^7.2",
"sensiolabs/security-checker": "^5.0"
},
"extra": {
"branch-alias": {
"dev-master": "0.10-dev"
},
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"autoload": {
"psr-4": {
"Ekino\\PHPStanBannedCode\\": "src"
Expand All @@ -33,11 +47,5 @@
}
},
"minimum-stability": "dev",
"prefer-stable": true,

"extra": {
"branch-alias": {
"dev-master": "0.10-dev"
}
}
"prefer-stable": true
}