Skip to content

Commit f6dc841

Browse files
committed
Composer: update package name
... and indicate that this package replaces `squizlabs/php_codesniffer`.
1 parent 97d94c2 commit f6dc841

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ php phpcbf.phar -h
3434
### Composer
3535
If you use Composer, you can install PHP_CodeSniffer system-wide with the following command:
3636
```bash
37-
composer global require "squizlabs/php_codesniffer=*"
37+
composer global require "phpcsstandards/php_codesniffer=*"
3838
```
3939
Make sure you have the composer bin dir in your PATH. The default value is `~/.composer/vendor/bin/`, but you can check the value that you need to use by running `composer global config bin-dir --absolute`.
4040

41-
Or alternatively, include a dependency for `squizlabs/php_codesniffer` in your `composer.json` file. For example:
41+
Or alternatively, include a dependency for `phpcsstandards/php_codesniffer` in your `composer.json` file. For example:
4242

4343
```json
4444
{
4545
"require-dev": {
46-
"squizlabs/php_codesniffer": "3.*"
46+
"phpcsstandards/php_codesniffer": "^3.0"
4747
}
4848
}
4949
```

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "squizlabs/php_codesniffer",
2+
"name": "phpcsstandards/php_codesniffer",
33
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
44
"type": "library",
55
"keywords": [
@@ -34,6 +34,9 @@
3434
"require-dev": {
3535
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
3636
},
37+
"replace": {
38+
"squizlabs/php_codesniffer": "> 2.0"
39+
},
3740
"bin": [
3841
"bin/phpcs",
3942
"bin/phpcbf"

0 commit comments

Comments
 (0)