Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpinsights Laravel Package

nunomaduro/phpinsights

PHP Insights is a terminal tool to analyze PHP code quality, style, architecture, and complexity. Works out of the box with Laravel (artisan insights), Symfony, Yii, Magento, and more, with built-in checks for reliability and loose coupling.

View on GitHub
Deep Wiki
Context7

IDE Integration

Since <Badge text="^1.10"/> version of PhpInsights, you can add links to files in PhpInsights output.

Prerequisite & Troubleshooting

Links in terminal work thanks to symfony/console from 4.3 version. Be sure you are using this version with composer info symfony/console.

If your terminal does not support hyperlinks, they will be rendered as normal and non-clickable text.

That's why it's recommended to check out the list of terminal emulators that support hyperlinks.

Configuration

In your phpinsights.php file, add the config 'ide' => 'myide'.

For example:

<?php

return [
    // ...
    'ide' => 'vscode',
    // ...
];

Supported IDE

You can fill ide config with the followings values:

  • phpstorm
  • sublime
  • textmate
  • macvim
  • emacs
  • atom
  • vscode

::: tip About PhpStorm The phpstorm option is supported natively by PhpStorm on MacOS.

Windows requires PhpStormProtocol and Linux requires phpstorm-url-handler.

You may also have to enable the command-line launcher. :::

Unsupported IDE

If you use another editor, the expected configuration value is a URL template that contains an %f placeholder where the file path is expected and %l placeholder for the line number.

For example:

<?php

return [
    // ...
    'ide' => 'myide://open?url=file://%f&line=%l',
    // ...
];
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests