PHPackages                             fivesqrd/paperjet-sdk-php - 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. fivesqrd/paperjet-sdk-php

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

fivesqrd/paperjet-sdk-php
=========================

The Paperjet document client

v1.0.3(5y ago)032[2 issues](https://github.com/fivesqrd/paperjet-sdk-php/issues)[2 PRs](https://github.com/fivesqrd/paperjet-sdk-php/pulls)PHP

Since Aug 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/fivesqrd/paperjet-sdk-php)[ Packagist](https://packagist.org/packages/fivesqrd/paperjet-sdk-php)[ RSS](/packages/fivesqrd-paperjet-sdk-php/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (7)Used By (0)

PHP client for the Paperjet API
===============================

[](#php-client-for-the-paperjet-api)

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

[](#installation)

```
composer require paperjet/sdk

```

Setup
-----

[](#setup)

Vanilla PHP

```
use Paperjet\Document;

$params = [
    //...document params
]

header('Content-Type: application/pdf');

echo Document::instance('my-token-key')
    ->create($params)
    ->render();

```

In Laravel

```
use Paperjet;

$params = [
    //...document params
]

$pdf = Paperjet::document($params)->render();

```

Defining default values
-----------------------

[](#defining-default-values)

```
use Paperjet\Document;

$defaults = [
    'template' => '9840mjlep0ou34ko4d',
    'currency' => 'USD',
    'tax'      => [
        'name'      => 'VAT',
        'rate'      => 0.14,
        'reference' => 'V98756799373',
    ]
];

$params = [
    //...document params
];

$pdf = Document::instance('my-token-key', $defaults)
    ->create($params)
    ->render();

```

In Laravel

```
/* todo */

```

Document from array input
-------------------------

[](#document-from-array-input)

```
use Paperjet\Document;

$params = [
    'title'     => 'Tax Invoice',
    'date'      => date('Y-m-d'),
    'due'       => date('Y-m-d', time() + 86400 * 30),
    'number'    => 'INVOO1',
    'recipient' => [
        'name'        => 'Acme & Co',
        'address'     => ['102 Main Avenue', 'Jacksonville', 'Mysharona', 'VX975 933'],
        'email'       => 'billing@acmeco.com'
    ],
    'items'     => [
        [
            'description' => 'Monthly subscription ' . date('F Y'),
            'qty'         => 1,
            'amount'      => 20.00,
            'taxable'     => true
        ]
    ]
];

$pdf = Document::instance('my-token-key', $defaults)
    ->create($params);
    ->render();

```

Document from fluent document builder interface
-----------------------------------------------

[](#document-from-fluent-document-builder-interface)

```
use Paperjet\Document;

$invoice = Document::builder()
    ->template('9840mjlep0ou34ko4d')
    ->title('Tax Invoice')
    ->currency('USD')
    ->date(date('Y-m-d'))
    ->due(date('Y-m-d', time() + 86400 * 30))
    ->number('INVOO1')
    ->recipient(
        'Acme & Co', ['102 Main Avenue', 'Jacksonville', 'Mysharona', 'VX975 933']
    )
    ->tax('VAT', 0.14, 'V98756799373')
    ->items($items)
    ->item('Monthly subscription ' . date('F Y'), 1, 20.00, true)
    ->item('Priority support add-on', 1, 5.00, true);

$pdf = Document::instance('my-token-key', $defaults)
    ->create($invoice)
    ->render();

```

In Laravel using callable interface

```
use Paperjet;

$document = Paperjet::document(function ($builder) {
    $builder->title('Tax Invoice')
        ->date(date('Y-m-d'))
        ->due(date('Y-m-d', time() + 86400 * 30))
        ->number('INVOO1')
        ->recipient(
            'Acme & Co', ['102 Main Avenue', 'Jacksonville', 'Mysharona', 'VX975 933']
        )
        ->item('Monthly subscription ' . date('F Y'), 1, 20.00, true)
        ->item('Priority support add-on', 1, 5.00, true);
});

return response()->streamDownload(function () use ($document) {
    echo $document->render();
}, $document->attribute('number') . '.pdf', ['Content-Type' => 'application/pdf']);

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

2176d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7326f7193078067ab21d775e45c06241d8cc03548c6c3191146d840f2e8277ba?d=identicon)[christianjburger](/maintainers/christianjburger)

### Embed Badge

![Health badge](/badges/fivesqrd-paperjet-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/fivesqrd-paperjet-sdk-php/health.svg)](https://phpackages.com/packages/fivesqrd-paperjet-sdk-php)
```

###  Alternatives

[drutiny/drutiny

This is a generic Drupal 7 and Drupal 8 site auditing and optional remediation tool.

132122.2k17](/packages/drutiny-drutiny)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)[ambersive/pdfprinter

This package for laravel provides a simple way to create pdf documents. This packages requires a running instance of the PRINT-API (also open sourced).

162.6k](/packages/ambersive-pdfprinter)

PHPackages © 2026

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