PHPackages                             moveek/excel-bundle - 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. moveek/excel-bundle

ActiveSymfony-bundle[PDF &amp; Document Generation](/categories/documents)

moveek/excel-bundle
===================

Symfony Bundle to read or write Excel file (including pdf, xlsx, odt), using phpoffice/phpspreadsheet library (replacement of phpoffice/phpexcel, abandonned)

1.0.4(3y ago)02.8kMITPHPPHP &gt;=7.1.3

Since Mar 28Pushed 3y agoCompare

[ Source](https://github.com/thientv98/excel-bundle)[ Packagist](https://packagist.org/packages/moveek/excel-bundle)[ RSS](/packages/moveek-excel-bundle/feed)WikiDiscussions master Synced 1mo ago

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

Symfony Excel bundle
====================

[](#symfony-excel-bundle)

[![Build Status](https://camo.githubusercontent.com/e364eb6f10bccebf635fd002f5f627376cc2de8b36a02174869cfc83faeaea8d/68747470733a2f2f7472617669732d63692e6f72672f4e6f6e6f313937312f657863656c2d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Nono1971/excel-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e26d596649967f012132e5fdd21a39a42daf4d9dd37395818814961d7b1d9657/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e6f6e6f313937312f657863656c2d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nono1971/excel-bundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/1926b78b48d1e0a7c42e0c517fc6b2f9fdb7da6907cbe630206df0c5f6534e81/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e6f6e6f313937312f657863656c2d62756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nono1971/excel-bundle/?branch=master)[![License](https://camo.githubusercontent.com/089b3688526d172dc868f1641cbf1da01e0550ae8f606d6c23377b466aece117/68747470733a2f2f706f7365722e707567782e6f72672f6f6e7572622f657863656c2d62756e646c652f6c6963656e7365)](https://packagist.org/packages/onurb/excel-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/fd80c79ce2e472ba6334566ae6d2741f109bfa174667bad2af60b626d50b27b2/68747470733a2f2f706f7365722e707567782e6f72672f6f6e7572622f657863656c2d62756e646c652f762f737461626c65)](https://packagist.org/packages/onurb/excel-bundle)[![Total Downloads](https://camo.githubusercontent.com/3885ea3a80bcaf81501cf9d32cff8d06baf7ceb11bbd4ca4b3063a5fa41f34a8/68747470733a2f2f706f7365722e707567782e6f72672f6f6e7572622f657863656c2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/onurb/excel-bundle)

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

[](#installation)

**1** Add to composer.json to the `require` key

```
    composer require onurb/excel-bundle
```

or manually in composer.json

```
    ...,
    "require": {
            ...,
            "onurb/excel-bundle":     "~1.0"
        },
    ...
```

**2** Symfony 3 : Register the bundle in `app/AppKernel.php`

```
    $bundles = array(
        // ...
        new \Onurb\Bundle\ExcelBundle\OnurbExcelBundle(),
    );
```

Symfony 4 : With symfony flex, bundle should be already automatically registered :

```
   // config/bundles.php
    return [
        // ...
        Onurb\Bundle\ExcelBundle\OnurbExcelBundle::class => ['all' => true],
    ];
```

Usage
-----

[](#usage)

#### Create a spreadsheet

[](#create-a-spreadsheet)

```
$spreadsheet = $this->get('phpspreadsheet')->createSpreadsheet();
```

#### Create a spreadsheet from an existing file

[](#create-a-spreadsheet-from-an-existing-file)

```
$spreadsheet = $this->get('phpspreadsheet')->createSpreadsheet('file.xlsx');
```

#### Create a Excel5 and write to a file given the object:

[](#create-a-excel5-and-write-to-a-file-given-the-object)

```
$writer = $this->get('phpspreadsheet')->createWriter($spreadsheet, 'Xls');
$writer->save('file.xls');
```

#### Create a Excel 2007 and create a StreamedResponse:

[](#create-a-excel-2007-and-create-a-streamedresponse)

```
$writer = $this->get('phpspreadsheet')->createWriter($spreadsheet, 'Xlsx');
$response = $this->get('phpspreadsheet')->createStreamedResponse($writer);
```

#### Create a Excel file with an image:

[](#create-a-excel-file-with-an-image)

```
$writer = $this->get('phpspreadsheet')->createSpreadSheet();
$writer->setActiveSheetIndex(0);
$activesheet = $writer->getActiveSheet();
$drawingobject = $this->get('phpspreadsheet')->createSpreadsheetWorksheetDrawing();
$drawingobject->setPath('/path/to/image')
    ->setName('Image name')
    ->setDescription('Image description')
    ->setHeight(60)
    ->setOffsetY(20)
    ->setCoordinates('A1')
    ->setWorksheet($activesheet);
```

#### Create reader

[](#create-reader)

```
$reader = $this->get('phpspreadsheet')->createReader('Xlsx');
```

#### Supported file types

[](#supported-file-types)

Types are case sensitive. Supported types are:

- `Xlsx`: Excel 2007
- `Xls`: Excel 5
- `Xml`: Excel 2003 XML
- `Slk`: Symbolic Link (SYLK)
- `Ods`: Libre Office (ODS)
- `Csv`: CSV
- `Html`: HTML

#### Optional libraries can be installed for writing:

[](#optional-libraries-can-be-installed-for-writing)

- `Tcpdf`
- `Mpdf`
- `Dompdf`

to install these libraries :

```
composer require tecnick.com/tcpdf
composer require mpdf/mpdf
composer require dompdf/dompdf
```

#### liuggio/Excelbundle portability

[](#liuggioexcelbundle-portability)

For users already using liuggio/ExcelBundle wanting to migrate to phpspreadsheet, the bundle should be directly compatible : old phpexcel file types are maintained, a compatibility factory has been added, and the phpexcel service is also redeclared.

#### More

[](#more)

See also the official [PhpSpreadsheet documentation](http://phpspreadsheet.readthedocs.io/).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~383 days

Total

5

Last Release

1442d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6

1.0.1PHP &gt;=7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/8336a8faa7cf8edd6750706644fa4393862d0454647a8122bb23dcd63fc256c1?d=identicon)[thientv98](/maintainers/thientv98)

---

Top Contributors

[![Nono1971](https://avatars.githubusercontent.com/u/5521060?v=4)](https://github.com/Nono1971 "Nono1971 (4 commits)")[![thientv98](https://avatars.githubusercontent.com/u/24351705?v=4)](https://github.com/thientv98 "thientv98 (2 commits)")

---

Tags

symfonybundleexcelxlsxlsxspreadsheetPHPExcel

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/moveek-excel-bundle/health.svg)

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

###  Alternatives

[onurb/excel-bundle

Symfony Bundle to read or write Excel file (including pdf, xlsx, odt), using phpoffice/phpspreadsheet library (replacement of phpoffice/phpexcel, abandonned)

15332.0k](/packages/onurb-excel-bundle)[sensiolabs/gotenberg-bundle

A Symfony bundle that provides seamless integration with Gotenberg for generating PDFs and screenshots from various sources (HTML, Markdown, Office documents, URLs) with a clean, builder-based API.

210210.4k2](/packages/sensiolabs-gotenberg-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

2951.2M7](/packages/avadim-fast-excel-writer)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[roromix/spreadsheetbundle

This is a Symfony 7.1+ Bundle helps you to read and write Spreadsheet files (including pdf, xls, xlsx, odt, csv), thanks to the PHPSpreadsheet library

24410.2k1](/packages/roromix-spreadsheetbundle)

PHPackages © 2026

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