Download the PHP package hexters/laramodule without Composer
On this page you can find all versions of the php package hexters/laramodule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laramodule
Laravel HMVC V4
Laramodule is a package for the Laravel framework that allows developers to organize and manage modules within their web application. It is designed to make it easy to create, manage and reuse modular components within a Laravel application.
With Laramodule, developers can create new modules that can be easily added to their application, and can also manage existing modules. It also allows developers to keep their code organized and maintainable, by separating different functionality into different modules. Each module can include its own controllers, views, routes, and other components.
Laramodule also provides an easy to use API for interacting with modules and their components. This allows developers to perform tasks such as enabling or disabling modules, and accessing module specific data or functionality.
Laramodule is a powerful tool for developers who want to create modular and maintainable applications with Laravel. It can help developers to speed up development, improve code quality and maintain a cleaner structure of their application.
Doc. Versions
Version | Doc. |
---|---|
V3 | Read Me |
To install through Composer, by run the following command:
Autoloading
By default the module classes are not loaded automatically. You can autoload your modules using psr-4
. For example :
And make Modules
directory in your root project folder
Don't forget to run the commands below
Managing assets
Install node module pacakge
Open vite.config.js
in your project and follow the instruction below.
Install the node module package in all module folders
And run the vite command below
Artisan
Happy coding ☕
Livewire Support
We have a livewire version but it is still in the experimental stage, please see the full documentation below.
Livewire HMVC Documentation
Inertia Support
Laramodule is already supported for integration with InertiaJs. Follow the official Inertia.js website to see the installation steps. inertiajs.com
Inertia with VueJs
Follow the command below to create a module and select Inertia With VueJs
in preset options.
You can run the command initialize inertia with vue for an existing module as below, but remember that. The route.php
file will be replaced by a new file.
Create a new javascript file in your root project directory with name inertia.js
and paste code below.
Add inertia.js
to vite.config.js
Open your app.blade.php
and change vite load assets.
Inertia with React
Follow the command below to create a module and select Inertia With ReactJs
in preset options.
You can run the command initialize inertia with react for an existing module as below, but remember that. The route.php
file will be replaced by a new file.
Create a new javascript file in your root project directory with name inertia.jsx
and paste code below.
Add inertia.jsx
to vite.config.js
Open your app.blade.php
and change vite load assets.
Tailwind Setup
For Tailwindcss, you need a few changes in tailwind.config.js
Helpers
Module path
list of all module paths
list of all module paths
Enable Module
Disable Module
Get module status
Grouping module by status
View module details
Get active module
Events
Laramodule has two events when enabling and disabling the module that can be listened to for specific purposes.
You can read how to use events & listeners in the official documentation.
Supporting the project
You can support the maintainer of this project through the referral links below
Follow package updates on my X @hexters