Skip to content

Commit a5e220a

Browse files
author
DKravtsov
committed
phpcpd 8.1.1 release. Available installation via composer.
1 parent a97013b commit a5e220a

File tree

6 files changed

+24
-4
lines changed

6 files changed

+24
-4
lines changed

ChangeLog.md

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes in PHPCPD are documented in this file using the [Keep a CHANGELOG](http://keepachangelog.com/) principles.
44

5+
## [8.1.1] - 2025-04-13
6+
7+
### Added
8+
9+
* Tool can be installed using composer, updated composer dependencies.
10+
511
## [8.1.0] - 2025-03-23
612

713
### Added

build.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project name="phpcpd" default="setup">
33
<property name="basedir" value="." override="false"/>
4-
<property name="version" value="8.1.0" override="false"/>
4+
<property name="version" value="8.1.1" override="false"/>
55
<target name="setup" depends="clean,install-dependencies"/>
66

77
<target name="clean" description="Cleanup build artifacts">

readme.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,23 @@ This is modified version of [sebastianbergmann/phpcpd](https://github.com/sebast
1313
* PHP version 8.3 or later
1414

1515
## Installation
16+
### Using composer
17+
If you have installed composer you can use next cmd command:
18+
```bash
19+
composer require systemsdk/phpcpd --dev
20+
```
21+
22+
### Manual installation
23+
If you are not using composer you have possibility to download this tool.
24+
1625
Download the latest version [here](releases/) and put phar archive into your project.
1726

1827
Note: This tool is distributed as a [PHP Archive (PHAR)](https://php.net/phar).
1928

2029
## Usage example
2130
```
22-
$ php phpcpd.phar --fuzzy --verbose src tests
23-
Copy/Paste Detector 8.1.0
31+
$ php ./vendor/bin/phpcpd --fuzzy --verbose src tests
32+
Copy/Paste Detector 8.1.1
2433
Found 1 code clones with 17 duplicated lines in 1 files:
2534
2635
- /var/www/html/tests/Application/ApiKey/Transport/Controller/Api/v1/ApiKeyControllerTest.php:128-145 (17 lines)
@@ -50,6 +59,11 @@ Average code clone size is 17 lines, the largest code clone has 17 lines
5059
Time: 00:00.100, Memory: 10.00 MB
5160
```
5261

62+
Note: If you are not using composer and have manual installation, you can use:
63+
```
64+
php phpcpd.phar --fuzzy --verbose src tests
65+
```
66+
5367
## Requirements for support team
5468
* Docker Engine version 23.0 or later
5569
* Docker Compose version 2.0 or later

releases/phpcpd-8.1.1.phar

131 KB
Binary file not shown.

releases/phpcpd-latest.phar

0 Bytes
Binary file not shown.

src/Cli/Application.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
final class Application
3030
{
31-
public const string VERSION = '8.1.0';
31+
public const string VERSION = '8.1.1';
3232

3333
/**
3434
* @param array<int, string> $argv

0 commit comments

Comments
 (0)