PHPackages                             kahil-raghed/laravel-excel-extended - 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. kahil-raghed/laravel-excel-extended

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

kahil-raghed/laravel-excel-extended
===================================

laravel excel additional usefull futures

1.0.0(1y ago)220MITPHPPHP ^7.2||^8.0

Since Mar 21Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/kahil-raghed/laravel-excel-extended)[ Packagist](https://packagist.org/packages/kahil-raghed/laravel-excel-extended)[ RSS](/packages/kahil-raghed-laravel-excel-extended/feed)WikiDiscussions main Synced 1mo ago

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

Larave Excel extended
=====================

[](#larave-excel-extended)

Added additional futures to `maatwebsite/excel` package

installation
------------

[](#installation)

```
composer require kahil-raghed/laravel-excel-extended

```

The `LaravelExcelExtended\Providers\FuturesProvider` is auto-discovered and registered by default.

If you want to register it yourself, add the ServiceProvider in config/app.php:

```
'providers' => [
    /*
     * Package Service Providers...
     */
    LaravelExcelExtended\Providers\FuturesProvider::class,
]
```

Futures
-------

[](#futures)

### Max width for auto size columns:

[](#max-width-for-auto-size-columns)

You can set maximum width to prevent columns from scalling too much.

Set for all columns:

```
namespace App\Exports;

use Maatwebsite\Excel\Concerns\ShouldAutoSize;
use LaravelExcelExtended\Concerns\WithMaxidth;

class ProductsExport implements ShouldAutoSize, WithMaxWidth {
    public function maxWidth(){
        return 50;
    }
}
```

Or set for spacific columns:

```
namespace App\Exports;

use Maatwebsite\Excel\Concerns\ShouldAutoSize;
use LaravelExcelExtended\Concerns\WithMaxidth;

class ProductsExport implements ShouldAutoSize, WithMaxWidth {
    public function maxWidth(){
        return [
            'A' => 50,
            'H' => 100
        ];
    }
}
```

### Dropdown lists

[](#dropdown-lists)

You can create interactive drop down lists using `WithDropdown` concern.

```
namespace App\Exports;

use LaravelExcelExtended\Concerns\WithDropdown;

class ProductsExport implements WithDropdown {
    public function dropdown(){
        return [
            'B2:B100' => [ // product size
                'values' => [
                    'XS',
                    'S',
                    'M',
                    'L'
                ]
            ],
        ];
    }
}
```

But this approach has limitations refer [phpspreadsheet data validation](https://phpspreadsheet.readthedocs.io/en/latest/topics/recipes/#setting-data-validation-on-a-cell)

> It is important to remember that any string participating in an Excel formula is allowed to be maximum 255 characters (not bytes). This sets a limit on how many items you can have in the string "Item A,Item B,Item C". Therefore it is normally a better idea to type the item values directly in some cell range, say A1:A3, and instead use, say, `$validation->setFormula1('\'Sheet title\'!$A$1:$A$3')`. Another benefit is that the item values themselves can contain the comma , character itself.

For long lists or list containing values with commas it is better to set stratergy to `Excel::LIST_STRATEGY_HIDDEN_COLUMN`.

it stores allowed values in a hidden column after the data.

```
namespace App\Exports;

use Models\Category;
use LaravelExcelExtended\Concerns\WithDropdown;
use LaravelExcelExtended\Helpers\Excel;

class ProductsExport implements WithDropdown {
    public function dropdown(){
        $categories = Category::all(['id', 'name']);
        return [
            'B2:B100' => [
                'values' => $category->map(fn ($c) => $c->name),
                'strategy' => Excel::LIST_STRATEGY_HIDDEN_COLUMN
            ],
        ];
    }
}
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance61

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

4

Last Release

417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99bd5025e4a50917fa23ab19d1fee23d40a395529897b9ac3c73fbba278c827b?d=identicon)[kahil-raghed](/maintainers/kahil-raghed)

---

Top Contributors

[![kahil-raghed](https://avatars.githubusercontent.com/u/188712413?v=4)](https://github.com/kahil-raghed "kahil-raghed (11 commits)")

---

Tags

phplaravelexportexcelcsvimportbatchPHPExcelphpspreadsheetdropdown

### Embed Badge

![Health badge](/badges/kahil-raghed-laravel-excel-extended/health.svg)

```
[![Health](https://phpackages.com/badges/kahil-raghed-laravel-excel-extended/health.svg)](https://phpackages.com/packages/kahil-raghed-laravel-excel-extended)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)

PHPackages © 2026

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