https://github.com/move-elevator/local-php-security-checker-installer
https://github.com/move-elevator/local-php-security-checker-installer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/move-elevator/local-php-security-checker-installer
- Owner: move-elevator
- Created: 2021-06-04T09:06:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:43:21.000Z (about 3 years ago)
- Last Synced: 2025-09-30T21:23:54.042Z (6 months ago)
- Language: PHP
- Size: 5.86 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# local-php-security-checker-installer
Composer integration for local PHP security check using fabpot/local-php-security-checker
## Install:
```
composer require move-elevator/local-php-security-checker-installer
```
Binary will be downloaded to your project's bin directory (`vendor/bin` by default, see [documentation](https://getcomposer.org/doc/articles/vendor-binaries.md#can-vendor-binaries-be-installed-somewhere-other-than-vendor-bin-)).
## Usage:
```
vendor/bin/local-php-security-checker-installer && vendor/bin/local-php-security-checker
```
Example in `composer.json` to run it after install:
```
"scripts": {
"post-install-cmd": [
"local-php-security-checker-installer"
],
"security-checker:show": "vendor/bin/local-php-security-checker",
"security-checker:check": "vendor/bin/local-php-security-checker --format=markdown | grep -E '[0-9]+ packages have known vulnerabilities' && exit 1 || exit 0"
}
```