PHPackages                             typesetsh/laravel-wrapper - 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. typesetsh/laravel-wrapper

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

typesetsh/laravel-wrapper
=========================

Typeset.sh wrapper for laravel 7-12

12.1.1(10mo ago)2447.7k↑42.9%1[1 issues](https://github.com/typesetsh/laravel-wrapper/issues)MITPHP

Since Jul 20Pushed 10mo ago3 watchersCompare

[ Source](https://github.com/typesetsh/laravel-wrapper)[ Packagist](https://packagist.org/packages/typesetsh/laravel-wrapper)[ RSS](/packages/typesetsh-laravel-wrapper/feed)WikiDiscussions laravel-7 Synced 1mo ago

READMEChangelog (10)Dependencies (3)Versions (68)Used By (0)

[![](https://camo.githubusercontent.com/fb14c76a2c7e6472dc17da03c31fe34817de085d0d359e024b9d123b89c97024/68747470733a2f2f7374617469632e747970657365742e73682f696d616765732f747970657365742e73682d6c6f676f2e737667)](https://camo.githubusercontent.com/fb14c76a2c7e6472dc17da03c31fe34817de085d0d359e024b9d123b89c97024/68747470733a2f2f7374617469632e747970657365742e73682f696d616765732f747970657365742e73682d6c6f676f2e737667)

Typeset.sh wrapper for Laravel 7, 8, 9, 10, 11 and 12
=====================================================

[](#typesetsh-wrapper-for-laravel-7-8-9-10-11-and-12)

This is a laravel typeset.sh wrapper that lets you easily configure and use typeset.sh in your laravel project. Typeset.sh is a printcss layout and rendering engine written in PHP.

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

[](#installation)

Make sure you have access to a valid composer token from typeset.sh.

Add typeset.sh package repository to composer and install the package via composer:

```
composer config repositories.typesetsh composer https://packages.typeset.sh
composer require typesetsh/laravel-wrapper

```

The package will be automatically discovered in your application thanks to [package auto-discovery](https://laravel.com/docs/8.x/packages#package-discovery).

Usage
-----

[](#usage)

The wrapper works similar to the view. Technically it wraps the view and uses its html output and renders it as pdf.

### Facade

[](#facade)

You can use the facade pattern. Similar as you would render a view.

```
use Typesetsh\LaravelWrapper\Facades\Pdf;

Route::get('/invoice/print', function () {
    $invoice = new stdClass();

    return Pdf::make('invoice', ['invoice' => $invoice]);
});
```

### Helper

[](#helper)

Alternative you can use the helper.

```
Route::get('/invoice/print', function () {
    $invoice = new stdClass();

    return Typesetsh\pdf('invoice', ['invoice' => $invoice]);
});
```

or force a download

```
Route::get('/invoice/print', function () {
    $invoice = new stdClass();

    return Typesetsh\pdf('invoice', ['invoice' => $invoice])->forceDownload('invoice.pdf');
});
```

or assign a save handler.

```
use Typesetsh\HtmlToPdf\StandardEncryption;
use Typesetsh\Pdf\Security\Encryption\Standard\Permission;

Route::get('/invoice/print', function () {
    $invoice = new stdClass();

    return Typesetsh\pdf('invoice', ['invoice' => $invoice])
        ->with(new StandardEncryption("owner123", "user123", Permission::FORMS));
});
```

Configuration
-------------

[](#configuration)

Typeset.sh does not require much configuration. The only important aspect to understand is that by default typeset.sh does not allow including any external resources (image, css, fonts,...) unless specified.

See the configuration file `config/typesetsh.php` for more information. By default, typeset.sh has access to the public directory and any http(s) resources.

You can also publish the file using:

```
php artisan vendor:publish --provider="Typesetsh\LaravelWrapper\ServiceProvider"

```

License
-------

[](#license)

This extension is under the [MIT license](LICENSE).

However, it requires a version of [typeset.sh](https://typeset.sh/) to work.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance53

Moderate activity, may be stable

Popularity40

Moderate usage in the ecosystem

Community13

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~27 days

Recently: every ~0 days

Total

67

Last Release

314d ago

Major Versions

7.14.0 → 12.1.02025-05-29

8.17.0 → 11.1.02025-05-29

10.4.1 → 11.1.12025-07-08

8.17.1 → 9.7.22025-07-08

9.7.2 → 12.1.12025-07-08

### Community

Maintainers

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

---

Top Contributors

[![jsiefer](https://avatars.githubusercontent.com/u/6014388?v=4)](https://github.com/jsiefer "jsiefer (38 commits)")[![therouv](https://avatars.githubusercontent.com/u/393419?v=4)](https://github.com/therouv "therouv (1 commits)")[![tillschander](https://avatars.githubusercontent.com/u/7063293?v=4)](https://github.com/tillschander "tillschander (1 commits)")

---

Tags

laravellaravel10laravel11laravel7laravel8laravel9pdftypesetsh

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/typesetsh-laravel-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/typesetsh-laravel-wrapper/health.svg)](https://phpackages.com/packages/typesetsh-laravel-wrapper)
```

###  Alternatives

[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)[crockett/csv-seeder

Database seeding using CSV files

23173.5k](/packages/crockett-csv-seeder)[initred/laravel-tabula

laravel-tabula is a tool for liberating data tables trapped inside PDF files for the Laravel framework.

1418.6k](/packages/initred-laravel-tabula)[rgilyov/laravel-csv-importer

Easy and reliable way to import, parse, validate and transform your csv files with laravel

166.1k](/packages/rgilyov-laravel-csv-importer)[rikless/xporter

CSV wrapper to export eloquent query result

105.2k](/packages/rikless-xporter)

PHPackages © 2026

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