PHPackages                             sfneal/view-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. sfneal/view-export

ActiveLibrary

sfneal/view-export
==================

Export Views from Laravel applications to PDF or Excel files

2.10.2(4y ago)03.5kMITPHPPHP &gt;=7.4

Since Oct 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sfneal/view-export)[ Packagist](https://packagist.org/packages/sfneal/view-export)[ Docs](https://github.com/sfneal/view-export)[ RSS](/packages/sfneal-view-export/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (11)Versions (53)Used By (0)

View Export
===========

[](#view-export)

[![Packagist PHP support](https://camo.githubusercontent.com/1d0299bdfd9067dc9ec55c2418bf60dbd071d3bf2b200a7f29ed31f31e4326f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73666e65616c2f766965772d6578706f7274)](https://packagist.org/packages/sfneal/view-export)[![Latest Version on Packagist](https://camo.githubusercontent.com/c8a53ec578c3b4475b1c9d68de19e68b28c0669255e89ab452c1572e2babe4af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73666e65616c2f766965772d6578706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/view-export)[![Build Status](https://camo.githubusercontent.com/a7634cb5499301447b78c9bb2123e6f4e4db1f504d7a95c5cb0e5a08da82316f/68747470733a2f2f7472617669732d63692e636f6d2f73666e65616c2f766965772d6578706f72742e7376673f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://travis-ci.com/sfneal/view-export)[![Quality Score](https://camo.githubusercontent.com/c9297a54fef4c46f381a5a1b6ceb0d12e448dda5209fa85fcc789382f8b4abc2/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73666e65616c2f766965772d6578706f72742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sfneal/view-export)[![Total Downloads](https://camo.githubusercontent.com/c8901988dda218e9f91a8d9d82c2d75d2c8c153673b5e8aafa9c99c37130ee42/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73666e65616c2f766965772d6578706f72742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sfneal/view-export)

Export Views from Laravel applications to PDF or Excel files.

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

[](#installation)

You can install the package via composer:

```
composer require sfneal/view-export
```

To modify the view-export config file publish the ServiceProvider.

```
php artisan vendor:publish --provider="Sfneal\ViewExport\Providers\ViewExportServiceProvider"
```

Usage
-----

[](#usage)

### PDFs

[](#pdfs)

Exporting a PDF from a 'view'.

```
use Sfneal\ViewExport\Pdf\PdfExportService;

// Set the view & upload path
$view = view('your.view', ['example_data' => ['a'=> 2001, 'b' => 3012]]);
$s3Key = 'path/to/save/your/file/example.pdf';

// Initialize an Exporter instance
$exporter = PdfExportService::fromView($view)->handle();

// Upload the PDF
$exporter->upload($s3Key);

// Download in browser
$exporter->download();

// Retrieve the upload path
$path = $exporter->path();
```

### Excel

[](#excel)

Exporting an Excel file from a 'view'.

```
use Sfneal\ViewExport\Excel\ExcelExportService;

// Set the view & upload path
$view = view('your.view', ['example_data' => ['a'=> 2001, 'b' => 3012]]);
$s3Key = 'path/to/save/your/file/example.pdf';

// Initialize an Exporter instance
$exporter = ExcelExportService::fromView($view)->handle();

// Upload the PDF
$exporter->upload($s3Key);

// Download in browser
$exporter->download();

// Retrieve the upload path
$path = $exporter->path();
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stephen Neal](https://github.com/sfneal)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

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

Total

51

Last Release

1775d ago

Major Versions

0.11.1 → 1.0.02021-03-16

1.2.0 → 2.0.02021-03-19

PHP version history (3 changes)0.1.0PHP ^7.2

0.2.0PHP &gt;=7.2

1.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ec5fdf3b9d2183ae9c777e4aed46fd5cfd9aa4789cd05c669e5907de0b8c865c?d=identicon)[sfneal](/maintainers/sfneal)

---

Top Contributors

[![sfneal](https://avatars.githubusercontent.com/u/23200215?v=4)](https://github.com/sfneal "sfneal (358 commits)")

---

Tags

sfnealview-export

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sfneal-view-export/health.svg)

```
[![Health](https://phpackages.com/badges/sfneal-view-export/health.svg)](https://phpackages.com/packages/sfneal-view-export)
```

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[krayin/laravel-crm

Krayin CRM

22.0k32.8k1](/packages/krayin-laravel-crm)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[typicms/base

A modular multilingual CMS built with Laravel, enabling developers to manage structured content like pages, news, events, and more.

1.6k20.3k](/packages/typicms-base)[ronasit/laravel-helpers

Provided helpers function and some helper class.

1475.7k13](/packages/ronasit-laravel-helpers)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

116.6k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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