PHPackages                             wali/filament-word-export - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. wali/filament-word-export

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

wali/filament-word-export
=========================

A powerful Filament plugin for exporting table data to Word documents with customizable headers, footers, and styling

v1.2.0(7mo ago)01[5 PRs](https://github.com/wali-eldin-hassan/filament-word-export/pulls)MITPHPPHP ^8.3CI passing

Since Oct 6Pushed 3mo agoCompare

[ Source](https://github.com/wali-eldin-hassan/filament-word-export)[ Packagist](https://packagist.org/packages/wali/filament-word-export)[ Docs](https://github.com/wali-eldin-hassan/filament-word-export)[ RSS](/packages/wali-filament-word-export/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (12)Used By (0)

Filament Word Export Plugin
===========================

[](#filament-word-export-plugin)

A Filament plugin for exporting table data to Microsoft Word (DOCX) format.

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 11.x or 12.x
- Filament 3.x or 4.x

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require wali/filament-word-export
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

Add the export action to your Filament table:

```
use Wali\FilamentWordExport\Actions\ExportToWordAction;

public function table(Table $table): Table
{
    return $table
        ->columns([
            // Your table columns
        ])
        ->bulkActions([
            ExportToWordAction::make(),
        ]);
}
```

### Customizing Headers and Footers

[](#customizing-headers-and-footers)

You can customize headers and footers per action:

```
use Wali\FilamentWordExport\Actions\ExportToWordAction;

public function table(Table $table): Table
{
    return $table
        ->bulkActions([
            // Custom header and footer text
            ExportToWordAction::make()
                ->headerText('My Company Report')
                ->footerText('Confidential Document')
                ->withPageNumbers(),

            // Disable headers/footers entirely
            ExportToWordAction::make('export-clean')
                ->label('Export (Clean)')
                ->withoutHeader()
                ->withoutFooter(),

            // Custom filename
            ExportToWordAction::make('export-custom')
                ->filename('custom-report-' . now()->format('Y-m-d') . '.docx'),
        ]);
}
```

### Advanced Customization

[](#advanced-customization)

For more advanced customization, you can use template overrides:

```
ExportToWordAction::make()
    ->templateOverrides([
        'header.style.size' => 12,
        'header.style.color' => '0066CC',
        'footer.style.italic' => true,
        'footer.page_number_alignment' => 'left',
    ])
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag="filament-word-export-config"
```

### Configuration Options

[](#configuration-options)

The configuration file allows you to set default values for headers and footers:

```
return [
    'header' => [
        'enabled' => true,
        'text' => 'Generated by Filament Word Export Plugin',
        'style' => [
            'italic' => true,
            'size' => 10,
            'color' => '000000',
            'alignment' => 'center',
        ],
        'logo' => [
            'enabled' => false,
            'path' => null, // e.g., 'logos/company-logo.png'
            'width' => 100,
            'height' => 50,
            'alignment' => 'left',
        ],
    ],
    'footer' => [
        'enabled' => true,
        'text' => 'Generated via Filament Word Export Plugin',
        'style' => [
            'size' => 9,
            'color' => '999999',
            'alignment' => 'center',
        ],
        'show_page_numbers' => true,
        'page_number_format' => 'Page {PAGE} of {NUMPAGES}',
        'page_number_alignment' => 'right',
    ],
];
```

Development
-----------

[](#development)

This project uses Laravel Pint for code formatting and Rector for automated refactoring.

### Code Formatting with Pint

[](#code-formatting-with-pint)

```
# Check code style
composer lint:test

# Fix code style issues
composer lint

# Fix only dirty files (git)
composer lint:dirty
```

### Code Refactoring with Rector

[](#code-refactoring-with-rector)

```
# Preview changes (dry run)
composer refactor:dry

# Apply refactoring changes
composer refactor
```

### Combined Commands

[](#combined-commands)

```
# Check formatting and preview refactoring
composer format

# Apply both formatting and refactoring
composer fix
```

### Manual Tool Usage

[](#manual-tool-usage)

You can also run the tools directly:

```
# Pint
./vendor/bin/pint
./vendor/bin/pint --test
./vendor/bin/pint --dirty

# Rector
./vendor/bin/rector process
./vendor/bin/rector process --dry-run
```

Configuration Files
-------------------

[](#configuration-files)

- `pint.json` - Laravel Pint configuration
- `rector.php` - Rector configuration
- `config/filament-word-export.php` - Plugin configuration

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance74

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

216d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21fb2479b7997bd22542d6c8d4fd18669209087ee2656e3cf0572e78959479fe?d=identicon)[wali-eldin-hassan](/maintainers/wali-eldin-hassan)

---

Top Contributors

[![wali-eldin-hassan](https://avatars.githubusercontent.com/u/45886981?v=4)](https://github.com/wali-eldin-hassan "wali-eldin-hassan (4 commits)")

---

Tags

laravelexportworddocxPhpWordfilamentdocument generationtable-export

###  Code Quality

Static AnalysisRector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/wali-filament-word-export/health.svg)

```
[![Health](https://phpackages.com/badges/wali-filament-word-export/health.svg)](https://phpackages.com/packages/wali-filament-word-export)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M711](/packages/maatwebsite-excel)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[novay/laravel-word-template

Package Laravel untuk melakukan penggantian kata pada file menggunakan template dokumen (.doc atau .docx) yang sudah disediakan.

4815.1k](/packages/novay-laravel-word-template)[highsolutions/laravel-lang-import-export

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

25292.3k](/packages/highsolutions-laravel-lang-import-export)[3x1io/filament-excel

Excel Export for Resources

224.2k1](/packages/3x1io-filament-excel)[avadim/fast-excel-laravel

Lightweight and very fast XLSX Excel Spreadsheet Export/Import for Laravel

4146.7k1](/packages/avadim-fast-excel-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
