keyur/prikedcd

A Laravel package to find unused controller functions.

v1.1.1 2024-07-16 14:32 UTC

This package is auto-updated.

Last update: 2024-09-16 15:02:12 UTC


README

Prikedcd is a Laravel package designed to scan your project for unused functions and display the results in a user-friendly format.

Features

  • Scans Laravel project to identify unused functions.
  • Provides a simple interface to trigger the scan via a web route.
  • Outputs the list of unused functions with basic styling.

Installation

You can install the Prikedcd package via Composer. Run the following command in your terminal:

composer require keyur/prikedcd

Working

After installing package you have to hit route '/dead-code-detector' and then click on any buttons 'Scan Controllers' or 'Scan Models' button and then wait untill output comes and that process may take time based on project size, so be patient and wait for output.

Before, Scanning Please Read Basic Instructions Carefully.

Version Information

  • Till version 1.0.2 all functionality is applicable for controllers only.

  • Till version 1.1.0, We have added model scanning also, means now model and controller both can scan individually.

  • Now, in Latest version 1.1.1, we have added new UI for our package and did some fixes for scanning which is not applicable for previous laravel version now for all laravel versions it is working perfectly fine.

Upcoming

  • Model and Controller Both can scan together.

  • Export output meand fumction names in one file based on date and time of scan and that should be stored and another time updated that file with added new date, time and output. so, user can compare and work accordingly.

  • Output will come at run time. Currently output comes after all files scanned. But we are working on output should come at run time. Because if error occured at any point then previously scanned functions output we can see.