Looking to hire Laravel developers? Try LaraJobs

laravel-duplication-checker maintained by jeelsureja

Description
A Laravel package to detect code duplication.
Author
jeelsureja
Last update
2024/06/10 13:07 (dev-main)
License
Links
Downloads
2

Comments
comments powered by Disqus

Laravel Duplication Checker

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.