PHPackages                             spacetab-io/gotenberg-sdk - 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. [API Development](/categories/api)
4. /
5. spacetab-io/gotenberg-sdk

ActiveLibrary[API Development](/categories/api)

spacetab-io/gotenberg-sdk
=========================

Asynchronous PHP Gotenberg SDK.

0.1.1(5y ago)1126MITPHPPHP &gt;=7.4

Since Jun 24Pushed 5y ago2 watchersCompare

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

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Asynchronous PHP Gotenberg SDK
------------------------------

[](#asynchronous-php-gotenberg-sdk)

A simple PHP async client for interacting with a Gotenberg API. Based on [Amphp](https://amphp.org).

Util `1.0.0` release library is unstable. Not ready for production use.

Install
-------

[](#install)

```
composer require spacetab-io/gotenberg-sdk
```

Usage example
-------------

[](#usage-example)

### Simple methods which returns a promise

[](#simple-methods-which-returns-a-promise)

```
use Amp\Loop;
use Spacetab\Logger\Logger;
use Psr\Log\LogLevel;
use Spacetab\Sdk\Gotenberg;
use Spacetab\Sdk\Gotenberg\Request;

require __DIR__ . '/vendor/autoload.php';

Loop::run(function () {
    $logger = Logger::default('Gotenberg', LogLevel::DEBUG);
    $gotenberg = Gotenberg\Client::new('http://0.0.0.0:3000');
    $gotenberg->setLogger($logger);

    $option = new Request\Html();
    $option->setLandscape(true);
    $option->setMarginBottom(0.1);
    $option->setMarginLeft(0.1);
    $option->setMarginRight(0.1);
    $option->setMarginTop(0.1);
    $option->setScale(0.70);

    /** @var \Spacetab\Sdk\Gotenberg\Output $output */
    $output = yield $gotenberg->html()->fromString('hi', $option);
    yield $output->asFile(__DIR__ . '/index.pdf');
});
```

Supported methods
-----------------

[](#supported-methods)

- Converts from HTML to PDF

License
-------

[](#license)

The MIT License

Copyright © 2020 spacetab.io, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

Total

2

Last Release

2148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/35d8eff4a3e66b58f3e2af56fe948035469de1e19ac29c532d65c681955bbd18?d=identicon)[Roquie](/maintainers/Roquie)

---

Top Contributors

[![roquie](https://avatars.githubusercontent.com/u/3214290?v=4)](https://github.com/roquie "roquie (5 commits)")

---

Tags

gotenbergphpsdksdk-php

### Embed Badge

![Health badge](/badges/spacetab-io-gotenberg-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/spacetab-io-gotenberg-sdk/health.svg)](https://phpackages.com/packages/spacetab-io-gotenberg-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k855.0k18](/packages/danog-madelineproto)[algolia/algoliasearch-client-php

API powering the features of Algolia.

69333.0M114](/packages/algolia-algoliasearch-client-php)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[webit/w-firma-api

wFirma.pl API

1820.2k](/packages/webit-w-firma-api)

PHPackages © 2026

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