A PhpStorm plugin that allows you to view PHP classes with their traits expanded inline, making it easier to understand the complete structure of classes that use traits.
- Inline Trait Viewer: View PHP classes with all trait methods and properties merged inline
- Context Menu Integration: Right-click in the editor to access "View PHP Trait Inline"
- Read-only Preview: Opens a read-only preview of the merged class for safe viewing
- Trait Detection: Automatically detects and expands all traits used by the selected class
- Open a PHP file containing a class that uses traits
- Right-click anywhere in the editor
- Select "View PHP Trait Inline" from the context menu
- A new editor tab will open showing the class with all trait methods and properties expanded inline
-
Using the IDE built-in plugin system:
Settings/Preferences > Plugins > Marketplace > Search for "php-trait-inline-viewer" > Install
-
Using JetBrains Marketplace:
Go to JetBrains Marketplace and install it by clicking the Install to ... button in case your IDE is running.
You can also download the latest release from JetBrains Marketplace and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
-
Manually:
Download the latest release and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.