Download the PHP package alizharb/laravel-modular-livewire without Composer

On this page you can find all versions of the php package alizharb/laravel-modular-livewire. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-modular-livewire

Laravel Modular Livewire ⚡

Latest Version on Packagist GitHub Tests Action Status Total Downloads

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

✨ Features

🚀 Installation

Install the package via Composer (requires alizharb/laravel-modular):

The service provider will be automatically registered. It will automatically hook into the laravel-modular registry.


📖 Usage

Generating Modular Components

Use the native make:livewire command with the --module flag to generate any Livewire 4 component type.

1. Single-File Components (Default)

The modern Livewire 4 standard. Everything in one .blade.php file.

2. Class-Based Components

The traditional separate Class and Template structure.

3. Multi-File Components (MFC)

Perfect for complex components with dedicated JS and CSS.

4. Page Components (Preferred for Routing)

Use the pages:: prefix for full-page components to keep them logically separated from UI fragments.

Routing (Livewire 4)

Laravel Modular Livewire fully supports Livewire 4's native Route::livewire() for full-page modular components.

Using Class-based Routes

Using Modular Aliases

Using Components in Blade

In your Blade views, use the module's alias as the namespace:


⚙️ Configuration

The bridge respects your existing modular.php paths and Livewire's own configuration. No additional configuration is required.

Diagnostics

After changing module Livewire paths or manifests, run:

If alizharb/laravel-themer is installed, the make:livewire bridge also supports --theme=theme-slug for theme-scoped Livewire components.


📦 Related Packages

Explore the rest of the Laravel Modular ecosystem:


🧪 Testing


🤝 Contributing

Please see CONTRIBUTING for details.

📄 License

The MIT License (MIT). Please see License File for more information.


Made with ❤️ by Ali Harb


All versions of laravel-modular-livewire with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
alizharb/laravel-modular Version ^1.2
livewire/livewire Version ^4.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alizharb/laravel-modular-livewire contains the following files

Loading the files please wait ...