Laravel Packages

Smart Error Checking and Refactoring Development Tool for Laravel

Published
Smart Error Checking and Refactoring Development Tool for Laravel image

Microscope is a Laravel development tool that includes smart checks to discover errors related to your applications. The highlight features according to the package's readme include:

  • It is created to be smarter than phpstorm and other IDEs in finding errors.
  • It is created to understand laravel run-time and magic.
  • It does not show you false errors, all the errors are really errors.
  • Even If you have written a lot of tests for your app, you may still need this.
  • It can refactor your code, by applying early returns automatically.
  • It is written from scratch to yield the maximum performance possible.

The package includes over seventeen different checks and a special command to run all of them. These commands will help you discover bugs and pitfalls in applications that might not have very many tests; however, this package can also be helpful for apps with many test cases.

This package contains some useful commands that will help you avoid common pitfalls, such as:

  • Avoid queries in Laravel Blade templates
  • Detects "bad practices", such as env() calls outside of configuration files
  • It can automatically flatten functions and loops by applying the early return rule
  • It can check your view() and View::make() calls and report if they refer to an incorrect/missing files
  • Validates event handler registration and gate policies/definitions

Learn More

You can learn more about this package, get full installation instructions, and view the source code on GitHub.

The author also has a video to demonstrate the Microscope package:

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Sponsored

tinkerwell logo
Tinkerwell

Enjoy coding and debugging in an editor designed for fast feedback and quick iterations. It's like a shell for your application – but with multi-line editing, code completion, and more.

Visit Tinkerwell

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article