PHPackages                             codeinc/cloudrun-gotenberg - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. codeinc/cloudrun-gotenberg

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

codeinc/cloudrun-gotenberg
==========================

Wrapper to use the Gotenberg HTTP client library with a CloudRun service

v1.4(2y ago)046MITPHPPHP &gt;=8.2

Since Feb 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/codeinchq/cloudrun-gotenberg)[ Packagist](https://packagist.org/packages/codeinc/cloudrun-gotenberg)[ Docs](https://github.com/codeinchq/cloudrun-gotenberg)[ RSS](/packages/codeinc-cloudrun-gotenberg/feed)WikiDiscussions main Synced 1mo ago

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

GCP Cloud Run Gotenberg for PHP
===============================

[](#gcp-cloud-run-gotenberg-for-php)

The PHP 8.2+ library provides an authenticated Gotenberg client using [`codeinc/cloudrun-auth-http-client`](https://packagist.org/packages/codeinc/cloudrun-auth-http-client) to be used with a [Gotenberg](https://gotenberg.dev/) service running on [Google Cloud Platform Cloud Run](https://cloud.google.com/run?hl=en).

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

[](#installation)

The library is available on [Packagist](https://packagist.org/packages/codeinc/cloudrun-gotenberg). You can install it using [Composer](https://getcomposer.org):

```
composer require codeinc/cloudrun-gotenberg
```

Usage
-----

[](#usage)

This library is modeled after the [official Gotenberg PHP client](https://packagist.org/packages/gotenberg/gotenberg-php). The methods of the class `CodeInc\CloudRunGotenberg\CloudRunGotenberg` are the same as the `Gotenberg\Gotenberg` class (but they are not `static`).

The requests are authenticated using [`codeinc/cloudrun-auth-http-client`](https://packagist.org/packages/codeinc/cloudrun-auth-http-client). A service account is required to authenticate the requests. Check [this page](https://github.com/codeinchq/cloudrun-auth-http-client?tab=readme-ov-file#usage) to learn how to create and authorized a service account and obtain the service account key.

*The following conversion examples are extracted from [Gotenberg PHP client documentation](https://github.com/gotenberg/gotenberg-php?tab=readme-ov-file#quick-examples).*

```
use CodeInc\CloudRunGotenberg\CloudRunGotenberg;
use Gotenberg\Stream;

// Creates the Cloud Run Gotenberg client
$cloudRunGotenberg = new CloudRunGotenberg(
    // Cloud Run service URL
    'https://my-service-12345-uc.a.run.app',
    // path to your service account key or array of credentials
    '/path/to/your/service-account-key.json'
);

// Converts a target URL to PDF and saves it to a given directory.
$filename = $cloudRunGotenberg->save(
    $cloudRunGotenberg->chromium()->pdf()->url('https://my.url'),
    $pathToSavingDirectory
);

// Converts Office documents to PDF and merges them.
$response = $cloudRunGotenberg->send(
    $cloudRunGotenberg->libreOffice()
        ->merge()
        ->convert(
            Stream::path($pathToDocx),
            Stream::path($pathToXlsx)
        )
);
```

License
-------

[](#license)

The library is published under the MIT license (see [`LICENSE`](LICENSE) file).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Total

5

Last Release

822d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/8f72f949d7f70e400c02c225685f1934dec6219689f25edec38b4037df166d58?d=identicon)[codeinc](/maintainers/codeinc)

---

Top Contributors

[![joanfabregat](https://avatars.githubusercontent.com/u/4227907?v=4)](https://github.com/joanfabregat "joanfabregat (10 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/codeinc-cloudrun-gotenberg/health.svg)

```
[![Health](https://phpackages.com/badges/codeinc-cloudrun-gotenberg/health.svg)](https://phpackages.com/packages/codeinc-cloudrun-gotenberg)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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