jeelsureja/laravel-duplication-checker

A Laravel package to detect code duplication.

Maintainers

Package info

github.com/jeelsureja/laravel-duplication-checker

pkg:composer/jeelsureja/laravel-duplication-checker

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2024-06-10 11:07 UTC

This package is auto-updated.

Last update: 2026-04-10 14:59:37 UTC


README

This package detects code duplication in Laravel projects and provides warnings via a dedicated route.

Installation

  1. Require the package via Composer:

    composer require jeelsureja/laravel-duplication-checker
  2. Publish the configuration file:

    php artisan vendor:publish --tag=config --provider="Jeelsureja\LaravelDuplicationChecker\Providers\DuplicationServiceProvider"
  3. Run the duplication check command:

    php artisan code:check-duplication

Configuration

The configuration file config/duplication.php allows you to customize the directories to be excluded and the route for warnings.

Usage

Navigate to the configured route (default: /duplication/warnings) to see the duplication warnings.