Download the PHP package systemsdk/phpcpd without Composer

On this page you can find all versions of the php package systemsdk/phpcpd. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phpcpd

PHP Copy/Paste Detector

phpcpd is a Copy/Paste Detector (CPD) for PHP code.

This is modified version of sebastianbergmann/phpcpd due to sebastianbergmann/phpcpd is abandoned and no longer maintained.

PHP Copy/Paste Detector Coverage Status

Source code

Requirements

Installation

Using composer

If you have installed composer, you can use the next cmd command:

Manual installation

If you are not using composer, you have a possibility to download this tool.

Download the latest version here and put phar archive into your project.

Note: This tool is distributed as a PHP Archive (PHAR).

Usage example

Note: If you are not using composer and have manual installation, you can use:

Html report

You are able to generate html report, but you need to have installed Xalan tool locally or inside your Docker container.

Please find more details how to generate/use it here.

Requirements for the support team

Note: OS recommendation - Linux Ubuntu based.

Components for the support team

  1. PHP 8.4 fpm
  2. Composer 2
  3. Phive 0.15
  4. Phing 3.0
  5. Xalan 1.12

Setting up Docker and docker compose for the support team

For installing Docker Engine with docker compose please follow steps mentioned on page Docker Engine.

Note 1: Please run next cmd after above step if you are using Linux OS: sudo usermod -aG docker $USER

Note 2: If you are using Docker Desktop for MacOS 12.2 or later - please enable virtiofs for performance (enabled by default since Docker Desktop v4.22).

Setting up DEV environment for the support team

1.Clone this repository from GitHub.

2.Edit and set XDEBUG_CONFIG= inside .env file (optional, by default XDEBUG_CONFIG=main).

3.Configure /docker/dev/xdebug-main.ini (Linux/Windows) or /docker/dev/xdebug-osx.ini (MacOS) (optional).

4.Build, start and install the docker images from your terminal:

Getting shell to container for the support team

After application will start (make start) and in order to get shell access inside php container you can run the following command:

Note: Please use exit command in order to return from container's shell to local shell.

Building container

In case you edited Dockerfile or other environment configuration, you'll need to build container again using next commands:

Start and stop environment containers for the support team

Please use next make commands in order to start and stop environment:

Stop and remove environment containers, networks for the support team

Please use next make commands in order to stop and remove environment containers, networks:

Additional main command available for the support team

Notes: Please see more commands in Makefile

Architecture & packages

Guidelines for the support team

Working on the project for the support team

  1. For new feature development, fork develop branch into a new branch with one of the two patterns:
    • feature/{ticketNo}
  2. Commit often and write descriptive commit messages, so it's easier to follow steps taken when reviewing.
  3. Push this branch to the repo and create pull request into develop to get feedback, with the format feature/{ticketNo} - "Short descriptive title of Jira task".
  4. Iterate as needed.
  5. Make sure that "All checks have passed" on CircleCI(or another one in case you are not using CircleCI) and status is green.
  6. When PR is approved, it will be squashed & merged, into develop and later merged into release/{No} for deployment.

Note: You can find git flow detail example here.


All versions of phpcpd with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
ext-dom Version *
ext-mbstring Version *
sebastian/cli-parser Version ^4.0
sebastian/version Version ^6.0
phpunit/php-file-iterator Version ^6.0
phpunit/php-timer Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package systemsdk/phpcpd contains the following files

Loading the files please wait ....