PHPackages                             marshallgosling/php-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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. marshallgosling/php-excel

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

marshallgosling/php-excel
=========================

phpExcel for Laravel

1.0.7(1y ago)038MITPHPPHP ^7.3|^8.0

Since Dec 12Pushed 1y ago1 watchersCompare

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

READMEChangelog (8)DependenciesVersions (8)Used By (0)

php-excel
=========

[](#php-excel)

PHPExcel library compatible with Laravel Framework &gt;= 8.x
------------------------------------------------------------

[](#phpexcel-library-compatible-with-laravel-framework--8x)

```
use Nathan\PHPExcel\IOFactory;
use Nathan\PHPExcel\PHPExcel;

function createObj()
{
    $objPHPExcel = new PHPExcel();

		// Set document properties
		$objPHPExcel->getProperties()->setCreator($creator)
		->setLastModifiedBy($creator)
		->setTitle($title)
		->setSubject($subject)
		->setDescription($description)
		->setKeywords($keywords)
		->setCategory($category);
}

function loadTemplate($file)
{
    $objPHPExcel = IOFactory::load($file);
}

function outputFile($filename, $mode='file')
{
    $objWriter = IOFactory::createWriter($objPHPExcel, 'Excel2007');

		if($mode == 'stream') {
		// Redirect output to a client’s web browser (Excel2007)
			header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
			header('Content-Disposition: attachment;filename="'.$filename.'"');
			header('Cache-Control: max-age=1920');

			$objWriter->save('php://output');
			exit;
		}
		if($mode == 'file') {
			$objWriter->save($filename);
		}

}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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 ~41 days

Recently: every ~58 days

Total

7

Last Release

642d ago

PHP version history (2 changes)1.0.1.x-devPHP ^7.0

1.0.6PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/810897cd8d72aeedfde49f52fb743feb8f8889b3ebbbcb183ef101dc541a9fa6?d=identicon)[marshallgosling](/maintainers/marshallgosling)

---

Top Contributors

[![marshallgosling](https://avatars.githubusercontent.com/u/58164520?v=4)](https://github.com/marshallgosling "marshallgosling (9 commits)")

---

Tags

excellaravelphplaravelexcel

### Embed Badge

![Health badge](/badges/marshallgosling-php-excel/health.svg)

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

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[bfinlay/laravel-excel-seeder

Seed the database with Laravel using Excel, XLSX, XLS, CSV, ODS, Gnumeric, XML, HTML, SLK files

3944.4k](/packages/bfinlay-laravel-excel-seeder)

PHPackages © 2026

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