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-13

13.0.0(1mo ago)2565.9k—0.7%2[1 issues](https://github.com/typesetsh/laravel-wrapper/issues)MITPHP

Since Jul 20Pushed 1mo 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 2d ago

READMEChangelog (10)Dependencies (6)Versions (75)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, 12 and 13
=========================================================

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

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

58

—

FairBetter than 98% of packages

Maintenance93

Actively maintained with recent releases

Popularity40

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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 ~29 days

Recently: every ~0 days

Total

74

Last Release

30d ago

Major Versions

7.14.2 → 10.4.22026-06-04

10.4.2 → 11.1.22026-06-04

8.17.2 → 9.7.32026-06-04

9.7.3 → 12.1.22026-06-04

12.1.2 → 13.0.02026-06-04

### 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 (40 commits)")[![x-dragos](https://avatars.githubusercontent.com/u/13873495?v=4)](https://github.com/x-dragos "x-dragos (3 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

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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