PHPackages                             mdh-digital/mdh-excel - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. mdh-digital/mdh-excel

ActiveLibrary[File &amp; Storage](/categories/file-storage)

mdh-digital/mdh-excel
=====================

Laravel Package for export xlsx and csv many data

974↓90%1PHP

Since Aug 20Pushed 2y agoCompare

[ Source](https://github.com/mdh-digital/mdh-excel)[ Packagist](https://packagist.org/packages/mdh-digital/mdh-excel)[ RSS](/packages/mdh-digital-mdh-excel/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

MDHEXCEL - LARAVEL EXPORT EXCEL AND CSV FOR MANY DATA
-----------------------------------------------------

[](#mdhexcel---laravel-export-excel-and-csv-for-many-data)

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

[](#installation)

### Laravel

[](#laravel)

You can install it using the composer command

```
composer require mdh-digital/mdh-excel

```

### Example Use Code

[](#example-use-code)

```
use MdhDigital\MdhExcel\MdhExcelCreation;
$data = $this->query(); // Your Query or Data
$download   = new MdhExcelCreation();

      return $download->download([
          'file_name'         => 'download_md.xlsx',
          'data'              => $data,
          'chunk'             => 2500,
          'custom_header'     => array(
              'status'            => true,
              'header'            => [
                  array(
                      'label'     => 'Date',
                      'value'     => 'excel_date',
                      'type'      => 'string',
                      'width'     => 20,
                  ),
                  array(
                      'label'     => 'Ref No',
                      'value'     => 'transaction.ref_no',
                      'type'      => 'string',
                      'width'     => 20,
                  ),
                  array(
                      'label'     => 'Store',
                      'value'     => 'store.name',
                      'type'      => 'string',
                      'width'     => 20,
                  ),
                  array(
                      'label'     => 'Product Name',
                      'value'     => 'full_name',
                      'type'      => 'string',
                      'width'     => 20,
                  ),
                  array(
                      'label'     => 'Sell Price',
                      'value'     => 'excel_price',
                      'type'      => 'string',
                      'width'     => 20,
                  ),
                  array(
                      'label'     => 'Qty',
                      'value'     => 'qty',
                      'type'      => 'int',
                      'width'     => 20,
                  ),

                  array(
                      'label'     => 'Subtotal',
                      'value'     => 'excel_subtotal',
                      'type'      => 'string',
                      'width'     => 20,
                  ),
              ]
          ),
          'header_style'  => array(
              'status'            => true,
              'attribut'          => array(
                  'bold'          => true,
                  'italic'        => false,
                  'underline'     => false,
                  'font_name'     => '',
                  'font_size'     => 15,
                  'font_color'    => 'WHITE',
                  'alignment'     => 'center',
                  'vertical_alignment'    => 'center',
                  'wrap_text'     => false,
                  'bg_color'      => 'LIGHT_BLUE'
              )
          ),
          'body_style' => array(
              'status'    => false
          )
      ]);

```

### License

[](#license)

This Mdhexcel Wrapper for Laravel is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/201692034?v=4)[sangrev](/maintainers/sangrev)[@SangreV](https://github.com/SangreV)

---

Top Contributors

[![mdede3456](https://avatars.githubusercontent.com/u/61860250?v=4)](https://github.com/mdede3456 "mdede3456 (5 commits)")

### Embed Badge

![Health badge](/badges/mdh-digital-mdh-excel/health.svg)

```
[![Health](https://phpackages.com/badges/mdh-digital-mdh-excel/health.svg)](https://phpackages.com/packages/mdh-digital-mdh-excel)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

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