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 Laravel Package

alizharb/laravel-modular

View on GitHub
Deep Wiki
Context7

Configuration Reference

modular.php (Global Config)

This file lives in config/modular.php.

Paths

Where your code lives.

'paths' => [
    // Where modules are stored. Change to base_path('packages') if you want.
    'modules' => base_path('modules'),
    
    // Where assets are symlinked to in public/
    'assets' => 'modules', 
],

// Automatically link assets after make:module
'auto_link' => true,

Naming

Code generation defaults.

'naming' => [
    // The PSR-4 namespace prefix. 
    'modules' => 'Modules\\',
],

Generators

Default flags for make:module.

'generators' => [
    'test' => [
        'type' => 'pest', // or 'phpunit'
    ],
],

Activators

How we remember if a module is enabled or disabled.

'activators' => [
    'file' => [
        'class' => \AlizHarb\Modular\Activators\FileActivator::class,
        'statuses-file' => base_path('modules_statuses.json'),
        'cache-key' => 'activator.installed_modules',
        'cache-lifetime' => 604800,
    ],
],

Cache

Speed up discovery in production.

'cache' => [
    'enabled' => false,
    'key' => 'modular.modules.cache',
    'lifetime' => 0,
    'path' => storage_path('framework/cache/modular.php'),
],
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.
aimeos/prisma
besmartand-pro/php-quality-config
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor
spatie/laravel-javascript-views