openplain/filament-transporter
Composer 安装命令:
composer require openplain/filament-transporter
包简介
Transport Filament resources between projects with automatic dependency discovery. Export once, import anywhere.
README 文档
README
Transport Filament resources between projects with automatic dependency discovery.
Features
- 🔍 Automatic file discovery using PHP reflection
- 📦 Smart composer dependency detection
- 🔄 Version tracking and conflict detection
- 💾 Automatic backups before changes
- 🎯 Interactive CLI interface
Installation
composer require openplain/filament-transporter --dev
Usage
Export a Resource
# Interactive php artisan filament:transporter:export # Direct php artisan filament:transporter:export NavigationCategoryResource
Import into Another Project
# Interactive php artisan filament:transporter:import # Direct php artisan filament:transporter:import navigation-category-resource
How It Works
Uses PHP reflection to automatically discover:
- Models, migrations, factories, seeders
- Enums, actions, policies
- Nested Filament resource structures
- Type-hinted dependencies
- Composer packages from use statements
Options
Preview Changes
php artisan filament:transporter:import component-name --preview
Force Overwrite
php artisan filament:transporter:import component-name --force
Custom Directories
php artisan filament:transporter:export Resource --output=/path/to/exports php artisan filament:transporter:import component --from=/path/to/exports
Configuration
Publish the config file:
php artisan vendor:publish --tag=filament-transporter-config
Configure export/import directories in config/filament-transporter.php:
return [ 'export' => [ 'output_dir' => '../filament-transporter-exports', ], 'import' => [ 'source_dir' => '../filament-transporter-exports', 'backup_dir' => 'storage/filament-transporter-backups', ], ];
Testing
composer test
composer pint
License
The MIT License (MIT). Please see License File for more information.
openplain/filament-transporter 适用场景与选型建议
openplain/filament-transporter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 10 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「package」 「import」 「export」 「component」 「laravel」 「transport」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 openplain/filament-transporter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 openplain/filament-transporter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 openplain/filament-transporter 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Bulk export of sylius resources
Parse use statements for a reflection object
Tool for copying data from a production database to a dev database. Also useful for making backups of production databases.
A fork of konnco/filament-import with support of Laravel 11 since the default importer of Filament 3 is nonsense for basic use case.
Yii2 export extension
A simple API extension for SplFileObject
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-17