Skip to content

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.

Notifications You must be signed in to change notification settings

tommykw/php-trait-inline-viewer

Repository files navigation

php-trait-inline-viewer

Build Version Downloads

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.

Features

  • 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

Usage

  1. Open a PHP file containing a class that uses traits
  2. Right-click anywhere in the editor
  3. Select "View PHP Trait Inline" from the context menu
  4. A new editor tab will open showing the class with all trait methods and properties expanded inline

Installation

  • 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages