PHPackages                             salamikola/laravel-ddscanner - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. salamikola/laravel-ddscanner

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

salamikola/laravel-ddscanner
============================

This package scans through laravel project to remove or comment out instances of dd/ddd function

v1.0.1(3y ago)02.0kMITPHP

Since Mar 10Pushed 3y ago1 watchersCompare

[ Source](https://github.com/salamikola/laravel-ddscanner)[ Packagist](https://packagist.org/packages/salamikola/laravel-ddscanner)[ RSS](/packages/salamikola-laravel-ddscanner/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

About Laravel DDScanner
-----------------------

[](#about-laravel-ddscanner)

Laravel DDScanner is a laravel console package that scan and remove instances of dd() and ddd() function within a laravel project.Laravel DDScanner is built on top of laravel command and it utilises the power of the elegant laravel console.

Motivation
----------

[](#motivation)

This package is inspired by an unforunate event, dd() slipped it way into production and all hell broke loose. The weekend after I have to create an artisan command in the CI/CD that can help prevent dd() from slipping into production. Long story short the command is now a package.

Installation
------------

[](#installation)

To get the latest version of Laravel-ddscanner on your project, require it from "composer":

```
  $ composer require salamikola/laravel-ddscanner
```

Or you can add it directly in your composer.json file:

```
 {
    "require": {
        "salamikola/laravel-ddscanner": "1.0*"
    }
}
```

Laravel
-------

[](#laravel)

Register the provider directly in your app configuration file config/app.php:

```
'providers' => [
	// ...

	Salamikola\LaravelDDScanner::class,
]

```

Usage
-----

[](#usage)

Go to the your project root terminal and enter the command below

```
php artisan dd:scanner

```

This will by default look for the app folder in your laravel root and scan recursively to the last file.

If you want to specify your starting path you can define it by adding the --path to the command

```
php artisan dd:scanner --path=C:\laragon\www\weekreed\app\Services

```

If you wish the scanner to tranverse just the top level without scanning the sub-directories you should add the --t flag

```
php artisan dd:scanner --path=C:\laragon\www\weekreed\app\Http --t

```

You wish to have more control over the recursive level you should make use of the --rl option

```
php artisan dd:scanner --path=C:\laragon\www\weekreed\app\Http --rl=2

```

The scanner will stop at the level 2 sub folder NOTE: rl means recursive level, it's not advisable to use --t and --rl= together

Because a typical laravel project can contain different file extensions, e.g .php, .blade.php e.t.c. You can specify the type of file you want to scan using the --ext option

```
php artisan dd:scanner --ext=php --ext=blade.php

```

NOTE : --ext option can take in multiple values

You would rather have your dd() commented out instead of being deleted, make use of the --comment flag

```
php artisan dd:scanner --comment

```

After all the razzmatas, you want to see those files that tested dd positive, you can use the --s flag to show all files that were affected by the scan

```
php artisan dd:scanner --s

```

You can view all options and their description using the --help option

```
php artisan dd:scanner --help

```

NOTE
====

[](#note)

Having dd() in your providers might halt the command, due to the fact that laravel boots your providers when starting the application.

If you are not a fan packages like me you can look up on my [webspace](https://weekreed.com) where I talked about the alternatives you can consider

Authors
-------

[](#authors)

- [@salamikola](https://www.github.com/salamikola)

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

🚀 About Me
----------

[](#-about-me)

You can catch me goofing around on my webspace [www.weekreed.com](http://www.weekreed.com)

Acknowledgements
----------------

[](#acknowledgements)

- [The Laravel Team / Ecosysytem](https://laravel.com)
- [Vale App](https://vale.ng)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e95f87d58bd05a2c724c273831f79bba229f549c9e9153ebddf24739abef3486?d=identicon)[salamikola](/maintainers/salamikola)

---

Top Contributors

[![salamikola](https://avatars.githubusercontent.com/u/60605994?v=4)](https://github.com/salamikola "salamikola (1 commits)")

### Embed Badge

![Health badge](/badges/salamikola-laravel-ddscanner/health.svg)

```
[![Health](https://phpackages.com/badges/salamikola-laravel-ddscanner/health.svg)](https://phpackages.com/packages/salamikola-laravel-ddscanner)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[pulkitjalan/ip-geolocation

IP Geolocation Wrapper with Laravel Support

89164.9k1](/packages/pulkitjalan-ip-geolocation)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
