PHPackages                             madebybob/carbone-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. madebybob/carbone-sdk

ActiveLibrary

madebybob/carbone-sdk
=====================

Carbone SDK for PHP

0.2.0(3y ago)67MITPHPPHP ^8.0

Since Jan 2Pushed 3y agoCompare

[ Source](https://github.com/madebybob/carbone-sdk)[ Packagist](https://packagist.org/packages/madebybob/carbone-sdk)[ Docs](https://github.com/madebybob/carbone-sdk)[ RSS](/packages/madebybob-carbone-sdk/feed)WikiDiscussions master Synced 1mo ago

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

Carbone SDK
===========

[](#carbone-sdk)

This package provides a PHP SDK for the [Carbone.io](https://carbone.io) API.

[![Cover](https://raw.githubusercontent.com/madebybob/carbone-sdk/master/.github/cover.png)](https://raw.githubusercontent.com/madebybob/carbone-sdk/master/.github/cover.png)

About Carbone
-------------

[](#about-carbone)

Carbone is a powerful and easy to use API to convert documents from a template to a PDF. It is based on LibreOffice and can convert any document supported by LibreOffice. It is also possible to convert HTML to PDF.

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

[](#installation)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require madebybob/carbone-sdk
```

Usage
-----

[](#usage)

### Carbone instance

[](#carbone-instance)

Using the SDK is very easy. You just need to create a new instance of the Carbone class and provide your API key.

```
use MadeByBob\Carbone\Carbone;

$carbone = new Carbone('YOUR_API_KEY');
```

### Templates

[](#templates)

#### Upload a template

[](#upload-a-template)

You can upload a template to Carbone using the `upload` method. This method takes the contents of the template as a parameter.

```
$response = $carbone->templates()->upload($content);

$templateId = $response->getTemplateId();
```

#### Delete a template

[](#delete-a-template)

You can delete a template using the `delete` method. This method takes the template ID as a parameter.

```
$response = $carbone->templates()->delete($templateId);
```

### Renders

[](#renders)

#### Render a template

[](#render-a-template)

You can render a template using the `render` method. This method takes the template ID and the data as parameters.

```
$response = $carbone->renders()->render($templateId, $data);

$renderId = $response->getRenderId();
```

#### Download a rendered template

[](#download-a-rendered-template)

You can download a rendered template using the `download` method. This method takes the render ID as a parameter.

```
$response = $carbone->renders()->download($renderId);

// Save the contents of the file yourself on your filesystem
$content = $response->getContent();
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

1222d ago

### Community

Maintainers

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

---

Top Contributors

[![bobmulder](https://avatars.githubusercontent.com/u/5465074?v=4)](https://github.com/bobmulder "bobmulder (14 commits)")

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/madebybob-carbone-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/madebybob-carbone-sdk/health.svg)](https://phpackages.com/packages/madebybob-carbone-sdk)
```

###  Alternatives

[nfse-nacional/nfse-php

This is my package nfse

1271.2k](/packages/nfse-nacional-nfse-php)[mailcarrier/mailcarrier

Mailing platform with templates and logs included

1632.0k](/packages/mailcarrier-mailcarrier)[anteris-dev/autotask-client

This package provides a PHP API client for the Autotask REST API. It is strongly typed and it is a wonderful experience to work with these classes in any intelligent IDE with autocompletion.

2454.4k1](/packages/anteris-dev-autotask-client)[m2mtech/weblate-translation-provider

Symfony Weblate Translation Provider Bridge

1927.2k](/packages/m2mtech-weblate-translation-provider)[moderntribe/tribe-libs

A library for use on Modern Tribe service projects.

1348.8k2](/packages/moderntribe-tribe-libs)[laravel-freelancer-nl/arangodb-php-client

Low level PHP client for ArangoDB

1415.9k1](/packages/laravel-freelancer-nl-arangodb-php-client)

PHPackages © 2026

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