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

Laravel Modular Livewire Laravel Package

alizharb/laravel-modular-livewire

View on GitHub
Deep Wiki
Context7
v1.0.2

πŸš€ Features & Improvements

  • Multi-Colon Syntax Support: Introduced global support for multi-colon syntax in views (e.g., auth::pages::auth.login), ensuring compatibility with third-party packages like Fortify.
  • Blade Tag Normalization: Implemented AlizHarb\Modular\Livewire\Support\BladeTagNormalizer to automatically normalize double-colon syntax in Blade component tags (<x-auth::pages::...> -> <x-auth::pages. ...>).
  • Enhanced View Resolution: Added a custom AlizHarb\Modular\Livewire\View\ModularViewFactory to seamlessly handle namespaced views with multiple delimiters.
  • Livewire Plugin Refactor: Refactored src/Plugins/LivewirePlugin.php for improved performance, cleaner code, and better maintainability.
  • Improved Discovery: Added support for automatic livewire/ subdirectory discovery in modular view namespaces.

πŸ›  Fixes

  • Component Discovery: Fixed issues with discovering nested modular Blade components.
  • View Resolution: Resolved "View not found" errors when using multi-colon syntax in specific contexts.

πŸ§ͺ Testing & Quality

  • New Tests: Added tests/Feature/MultiColonSyntaxTest.php and expanded tests/Feature/FlowTest.php for comprehensive coverage of the new features.
  • Static Analysis: Verified codebase with PHPStan (Level 5) and ensured all Pest tests pass successfully.
  • Documentation: Standardized PHPDoc blocks and removed non-standard comments across the codebase.

Full Changelog: https://github.com/AlizHarb/laravel-modular-livewire/compare/v1.0.1...v1.0.2

v1.0.1

⚑ Improvements & Bug Fixes

  • Livewire 4 Location Redirection: Overrode native Livewire 4 command behavior to correctly generate components in modular paths (`Modules/*/app/Livewire`).
  • SFC & Blade Component Discovery: Enhanced automatic registration for modular Single File Components (SFC) and pure Blade-based components.
  • Improved Artisan Feedback: Better error handling when generating components without a valid theme context.
  • Refined Provider Boot Order: Optimized service provider registration for better compatibility with Livewire’s startup sequence.

πŸ“¦ Documentation & Ecosystem

  • Ecosystem Integration: Added package suggestions for the complete Laravel Modular suite (`modular-filament`, `hooks`, `themer`).
  • Enhanced README: Integrated GitHub shields (Build Status, License, Version) and a "Related Packages" section for better discoverability.
  • Developer Experience: Full PSR-12 code style refactor and comprehensive PHPDoc documentation for better IDE support.

For a complete list of changes, see the CHANGELOG.md.

v1.0.0

This is the initial release of the official Livewire bridge for Laravel Modular. It enables automatic discovery, registration, and first-class Artisan support for Livewire 4 components within your modular architecture.

✨ Key Features

  • πŸ” Automatic Discovery: Automatically scans and registers Livewire components in Modules/*/app/Livewire.
  • πŸ—οΈ Modular Artisan Support: Enhanced make:livewire command with the --module flag for direct modular component generation.
  • ⚑ Livewire 4 Standard: Full support for Single-File Components (⚑), Class-based components, and Multi-File Components (MFC).
  • πŸ›£οΈ Advanced Routing: Support for Route::livewire() with modular aliases and the pages:: organization pattern.
  • βœ… Strictly Typed: Fully compatible with PHPStan level 5+ and modern PHP 8.2+ standards.

πŸ“¦ Installation

composer require alizharb/laravel-modular-livewire
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.
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge