Skip to content

Commit 67b4f32

Browse files
committed
Composer: revert package name change
⚠️ **_To be merged once the Packagist edit has been made._** ⚠️ This reverts commit f6dc841 and updates the information in the changelog for the 3.8.0 release. **Users who already changed the package name in _their_ `composer.json` depenendencies, should switch back to the original package name.** Refs: * See [the conversation from this comment down](squizlabs/PHP_CodeSniffer#3932 (comment)). Closes 113, 114
1 parent 960d541 commit 67b4f32

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ The file documents changes to the PHP_CodeSniffer project.
77

88
### Breaking Changes
99
- The `squizlabs/PHP_CodeSniffer` repository has been abandoned. This repository will serve as the continuation of the project.
10-
- Composer users will need to `require-dev` the `phpcsstandards/php_codesniffer` package instead.
10+
- For Composer users, nothing changes.
11+
- **In contrast to earlier information, the `squizlabs/php_codesniffer` package will now point to the new repo and everything will continue to work as before.**
1112
- PHIVE users may need to clear the PHIVE URL cache.
1213
- PHIVE users who don't use the package alias, but refer to the package URL, will need to update the URL from `https://squizlabs.github.io/PHP_CodeSniffer/phars/` to `https://phars.phpcodesniffer.com/phars/`.
1314
- Users who download the PHAR files using curl or wget, will need to update the URL from `https://squizlabs.github.io/PHP_CodeSniffer/[phpcs|phpcbf].phar` to `https://phars.phpcodesniffer.com/[phpcs|phpcbf].phar`.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ PHP_CodeSniffer
88
[![Test](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/test.yml)
99
[![License](http://poser.pugx.org/phpcsstandards/php_codesniffer/license)](https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/master/licence.txt)
1010

11-
![Minimum PHP Version](https://img.shields.io/packagist/php-v/phpcsstandards/php_codesniffer.svg?maxAge=3600)
11+
![Minimum PHP Version](https://img.shields.io/packagist/php-v/squizlabs/php_codesniffer.svg?maxAge=3600)
1212
[![Tested on PHP 5.4 to 8.3](https://img.shields.io/badge/tested%20on-PHP%205.4%20|%205.5%20|%205.6%20|%207.0%20|%207.1%20|%207.2%20|%207.3%20|%207.4%20|%208.0%20|%208.1%20|%208.2%20|%208.3-brightgreen.svg?maxAge=2419200)](https://github.com/PHPCSStandards/PHP_CodeSniffer/actions/workflows/test.yml)
1313

1414
</div>
@@ -48,16 +48,16 @@ php phpcbf.phar -h
4848
### Composer
4949
If you use Composer, you can install PHP_CodeSniffer system-wide with the following command:
5050
```bash
51-
composer global require "phpcsstandards/php_codesniffer=*"
51+
composer global require "squizlabs/php_codesniffer=*"
5252
```
5353
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`.
5454

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

5757
```json
5858
{
5959
"require-dev": {
60-
"phpcsstandards/php_codesniffer": "^3.0"
60+
"squizlabs/php_codesniffer": "^3.0"
6161
}
6262
}
6363
```

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phpcsstandards/php_codesniffer",
2+
"name": "squizlabs/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": [
@@ -43,9 +43,6 @@
4343
"require-dev": {
4444
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
4545
},
46-
"replace": {
47-
"squizlabs/php_codesniffer": "> 2.0"
48-
},
4946
"bin": [
5047
"bin/phpcs",
5148
"bin/phpcbf"

0 commit comments

Comments
 (0)