Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olivernybroe/phpinsights-intellij
The IntelliJ integration of phpinsights
https://github.com/olivernybroe/phpinsights-intellij
hacktoberfest
Last synced: 2 months ago
JSON representation
The IntelliJ integration of phpinsights
- Host: GitHub
- URL: https://github.com/olivernybroe/phpinsights-intellij
- Owner: olivernybroe
- License: mit
- Created: 2019-09-12T09:17:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T19:28:25.000Z (almost 4 years ago)
- Last Synced: 2024-05-01T17:22:03.015Z (8 months ago)
- Topics: hacktoberfest
- Language: Java
- Homepage:
- Size: 745 KB
- Stars: 18
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
[![JetBrains plugins](https://img.shields.io/jetbrains/plugin/d/13004-php-insights.svg)](https://plugins.jetbrains.com/plugin/13004-php-insights)
![GitHub stars](https://img.shields.io/github/stars/olivernybroe/phpinsights-intellij.svg?label=Stars)
![Jetbrains rating](https://img.shields.io/badge/dynamic/json.svg?label=JetBrains%20rating&url=https%3A%2F%2Fplugins.jetbrains.com%2Fplugin%2FgetPluginInfo%3FpluginId%3D13004&query=%24.totalRating&suffix=/5)
[![JetBrains Plugins](https://img.shields.io/jetbrains/plugin/v/13004-php-insights.svg)](https://plugins.jetbrains.com/plugin/13004-php-insights)### PHP Insights support built into PHPStorm
With this plugin you will now be able to use PHP Insights directly in PHPStorm. The files will be automatically analysed
and errors are shown directly on the line.## Installation
To install the plugin you can simply open up the marketplace in your IDE and search for `PHP Insights`.### Manual installation
If you for some reason prefer not to use the marketplace, then you can download the latest version of the plugin here
and use the install from disk feature in PHPStorm.## Configuration
After you have installed the plugin you will have to setup the path to your php insight installation.
This can be both a global installation or a per project based installation.For setting the path go to `Languages & Frameworks > PHP > Quality Tools > PHP Insights` and set the path to your path.
Normally you can find it under `vendor/bin/phpinsights` in your project folder.![Tool Settings](https://raw.githubusercontent.com/olivernybroe/phpinsights-intellij/master/art/tool_settings.png)
You also have the option to configure the severity of the messages, just like any other inspection.
You can find the inspection settings under `Editor > Inspections > PHP > Quality Tools > PHP Insights validation`.
This is also where you define your configuration file which you want php insight to use.![Inspection Settings](https://raw.githubusercontent.com/olivernybroe/phpinsights-intellij/master/art/inspections_settings.png)
## FAQ
### Does the plugin work for other IDE?
The plugin only works for IntelliJ based IDE's which have the PHP plugin installed.
You can for example use it in IntelliJ IDEA Ultimate if you install the PHP plugin. Afterwards this plugin should
be available in the marketplace as usual.### How do I use a custom config file?
You can use a custom config file by going to `Editor > Inspections` and search for `PHP Insights`.
From here you should have the option to set the path to a config file.### I have PHP Insights installed globally, can I still use it?
Absolutely, you just go to your Quality tools settings and define the path to your global composer installation folder.