openplain/filament-transporter

Transport Filament resources between projects with automatic dependency discovery. Export once, import anywhere.
3 1
Install
composer require openplain/filament-transporter
Latest Version:0.1.0
PHP:^8.2|^8.3
License:MIT
Last Updated:Oct 17, 2025
Links: GitHub  ·  Packagist
Maintainer: mashema

Filament Transporter

Latest Version on Packagist Total Downloads

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.

Related Packages

iracode-com/filament-excel-pro

Filament plugin for advanced Excel file data entry based on `SpartanNL/Laravel-E...

2 1
3x1io/filament-excel

Excel Export for Resources

4,216 21
filamentphp/advanced-export

Advanced export functionality for Filament resources with dynamic column selecti...

1,216 8
ufirst/lang-import-export

A Laravel package providing artisan commands to import and export language files...

234,762 41
cyber-duck/laravel-excel

This package provides a way to export an Eloquent collection as an excel file an...

230,833 74