定制 alizharb/laravel-modular-filament 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alizharb/laravel-modular-filament

Composer 安装命令:

composer require alizharb/laravel-modular-filament

包简介

The official Filament v5 bridge for Laravel Modular offering automatic discovery and modular Artisan commands.

README 文档

README

Laravel Modular Filament is the official bridge for Laravel Modular. It enables automatic discovery, registration, and first-class Artisan support for Filament resources, pages, widgets, and clusters within your modular architecture.

✨ Features

  • 🔍 Automatic Discovery: Automatically scans and registers Filament Resources, Pages, Widgets, and Clusters in Modules/*/app/Filament.
  • 🏗️ Modular Artisan Commands: Enhanced Filament commands (e.g., make:filament-resource) with --module support.
  • 🎨 Cluster Support: Full support for creating and discovering Filament Clusters within modules.
  • 📄 Native Stubs: Uses Filament's native stubs for consistent code generation without version drift.
  • 🩺 Diagnostics Ready: Designed for Laravel Modular 1.2 modular:doctor, modular:status, and modular:debug.
  • 🤖 Laravel Boost Support: Ships Boost guidance for module-owned Filament artifacts.
  • Strictly Typed: Fully compatible with PHPStan level 5 (and scalable).

🚀 Installation

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

composer require alizharb/laravel-modular-filament

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

📖 Usage

Generating Modular Components

Use the provided modular commands with the --module flag to generate Filament components directly into your modules.

1. Resources

Create a new Resource in a module.

php artisan make:filament-resource Post --module=Blog
  • Creates: Modules/Blog/app/Filament/Resources/Posts/PostResource.php
  • View: Modules/Blog/resources/views/filament/resources/posts/post-resource/pages/... (if generated)

2. Pages

Create a new standalone Page in a module.

php artisan make:filament-page Dashboard --module=Shop
  • Class: Modules/Shop/app/Filament/Pages/Dashboard.php
  • View: Modules/Shop/resources/views/filament/pages/dashboard.blade.php

3. Widgets

Create a new Widget in a module.

php artisan make:filament-widget StatsOverview --module=Analytics
  • Class: Modules/Analytics/app/Filament/Widgets/StatsOverview.php
  • View: Modules/Analytics/resources/views/filament/widgets/stats-overview.blade.php

4. Clusters

Create a new Cluster in a module to group resources and pages.

php artisan make:filament-cluster Settings --module=System
  • Class: Modules/System/app/Filament/Clusters/Settings/SettingsCluster.php

Other Commands

Most Filament generation commands are supported with the --module flag:

  • make:filament-relation-manager
  • make:filament-theme
  • make:filament-table
  • make:filament-form
  • make:filament-infolist

⚙️ Configuration

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

Diagnostics

After changing module Filament paths or manifests, run:

php artisan modular:doctor
php artisan modular:check
php artisan modular:debug Shop --json

Add manifest capabilities such as filament.resources, filament.pages, and filament.widgets to provides when a module exposes Filament surfaces.

🧪 Testing

vendor/bin/pest

🤝 Contributing

Please see CONTRIBUTING for details.

📄 License

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

Made with ❤️ by Ali Harb

alizharb/laravel-modular-filament 适用场景与选型建议

alizharb/laravel-modular-filament 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 156 次下载、GitHub Stars 达 3, 最近一次更新时间为 2026 年 01 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「modules」 「laravel」 「modular」 「laravel-modular」 「filament」 「filamentphp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 alizharb/laravel-modular-filament 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 alizharb/laravel-modular-filament 我们能提供哪些服务?
定制开发 / 二次开发

基于 alizharb/laravel-modular-filament 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 156
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 25
  • 依赖项目数: 0
  • 推荐数: 7

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-24