A PhpStorm plugin that enhances the project tree view for Laravel Livewire components by organizing multi-file components into a clean, collapsible structure.
Install from JetBrains Marketplace
- Displays component name (from files) instead of folder name
- Shows lightning bolt icon (⚡) for quick identification
- Child files shown as extensions only (.blade.php, .php, .css, .js)
- Supports CSS and JavaScript files alongside PHP and Blade templates
Choose what happens when you double-click a component:
- Expand/Collapse - Standard folder behavior (default)
- Open PHP class - Opens the component's PHP file
- Open Blade template - Opens the Blade view file
- Open selected files - Opens files you've selected with customizable layout
When opening multiple files, choose how they appear:
- Tabs - Open files in separate tabs (no split)
- Side by side - Vertical split for side-by-side viewing
- Stacked - Horizontal split for stacked viewing
Select which file types to open:
- PHP class (.php)
- Blade template (.blade.php)
- CSS file (.css or global.css)
- JavaScript file (.js)
- Scans configured paths (default:
resources/views) - Optionally reads paths from
config/livewire.php - Detects components with matching PHP and Blade files
- Open PhpStorm
- Go to Settings → Plugins
- Search for "Livewire Component Folder"
- Click Install
Or visit: https://plugins.jetbrains.com/plugin/29990-livewire-component-folder/
- Download the latest release
.zipfile - Open PhpStorm
- Go to Settings → Plugins
- Click the gear icon → Install Plugin from Disk
- Select the downloaded
.zipfile - Restart PhpStorm
Go to Settings → Tools → Livewire Component Folder
Configure where to look for Livewire components (one path per line, relative to project root):
resources/views
resources/views/livewire
Choose the default action when double-clicking a component folder.
When using "Open selected files", check which file types you want to open.
Choose how multiple files should be arranged when opened together.
Before:
pages/
auth/
login.blade.php
login.php
dashboard/
index.blade.php
index.php
index.css
index.js
After:
pages/
⚡ login
.blade.php
.php
⚡ index
.blade.php
.php
.css
.js
- PhpStorm 2024.3 or later
- Laravel with Livewire components
# Build the plugin
./gradlew buildPlugin
# Run in sandbox IDE
./gradlew runIde
# Verify plugin
./gradlew verifyPluginThe built plugin will be in build/distributions/.
MIT License - see LICENSE file for details.
For issues and feature requests, please visit:
- Plugin Page: https://plugins.jetbrains.com/plugin/29990-livewire-component-folder/
- GitHub: https://github.com/wojt-janowski/livewire-folder
Made with ⚡ for Laravel Livewire developers