PHPackages                             issetbv/alfredo-laravel - 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. issetbv/alfredo-laravel

ActiveLibrary

issetbv/alfredo-laravel
=======================

Laravel wrapper for Alfredo

10PHP

Since Oct 25Pushed 12y ago5 watchersCompare

[ Source](https://github.com/Isset/alfredo-laravel)[ Packagist](https://packagist.org/packages/issetbv/alfredo-laravel)[ RSS](/packages/issetbv-alfredo-laravel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Alfredo for Laravel
===================

[](#alfredo-for-laravel)

This package is merely an Alfredo wrapper written for Laravel. It will ease a lot of the tasks provided from the Alfredo client.

Table of Contents
=================

[](#table-of-contents)

[Documentation](#documentation)

[Installation](#installation)

[Usage](#usage)

- [Create payload](#create-payload)
- [Add source to payload](#add-source-to-payload)
- [Create payload with converter type](#create-payload-with-converter-type)
- [Create payload with callback url for queues](#create-payload-with-callback-url-for-queues)
- [Create payload with sources](#create-payload-with-sources)
- [Convert a payload](#convert-a-payload)
- [Stream a payload or converted payload](#stream-a-payload-or-converted-payload)
- [Queue a payload](#queue-a-payload)
- [Check if a queued payload has been converted](#check-if-a-queued-payload-has-been-converted)
- [Get converted payload from queue](#get-converted-payload-from-queue)
- [Stream converted payload from queue](#stream-converted-payload-from-queue)

[License](#license)

\# Documentation The full documentation on Alfredo can be \[found here\](http://online-pdfconverter.nl/guide) \# Requirements \* PHP 5.3 \# Installation 1. Add requirement to composer.json ```
```json
"issetbv/alfredo-laravel": "dev-master"
```

```

2. Update dependencies

    ```
    composer update
    ```
3. Publish configuration file

    ```
    php artisan config:publish issetbv/alfredo-laravel
    ```
4. Add Service Provider to the `providers` array in `app/config/app.php`

    ```
    'IssetBv\AlfredoLaravel\AlfredoServiceProvider',
    ```
5. Add Facade to the `facades` array in `app/config/app.php`

    ```
    'Alfredo' => 'IssetBv\AlfredoLaravel\Facade',
    ```
6. Add API keys to the configuration file in `app/config/packages/issetbv/alfredo-laravel/config.php`

\# Usage \*\*Create payload\*\* ```php $payload = Alfredo::makePayload(); ``` \*\*Add source to payload\*\* Available: addHtml, addPdf, addUrl

```
$payload = Alfredo::makePayload();
$payload->addUrl('http://isset.nl');
```

\*\*Create payload with converter type\*\* ```php $payload = Alfredo::makePayloadWithConverter('htmltopdfjava'); ``` \*\*Create payload with callback url for queues\*\* ```php $payload = Alfredo::makePayloadWithCallback('http://example.com/callback\_url'); ``` \*\*Create payload with sources\*\* Available: html, pdf, url

```
$payload = Alfredo::makePayloadWithSources(array(
    array('url', 'http://isset.nl'),
    array('html', 'Create payload with sources!')
));
```

\*\*Convert a payload\*\* ```php $payload = Alfredo::makePayload(); $payload-&gt;addHtml('Converting a payload!'); $pdf = Alfredo::convert($payload); ``` \*\*Stream a payload or converted payload\*\* Stream a payload:

```
$payload = Alfredo::makePayload();
$payload->addHtml('Streaming a payload!');
$response = Alfredo::stream($payload); // returns a Response object
```

Stream a converted payload:

```
$payload = Alfredo::makePayload();
$payload->addHtml('Streaming a converted payload!');
$pdf = Alfredo::convert($payload);
$response = Alfredo::stream($pdf); // returns a Response object
```

\*\*Queue a payload\*\* When using the queue, its necessary to set the callback url.

```
$payload = Alfredo::makePayloadWithCallback('http://example.com/callback_url');
$payload->addHtml('Queueing a payload!');
$response = Alfredo::queue($payload); // returns a JSON response
```

```
{
    "response":"Queued",
    "identifier":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
```

\*\*Check if a queued payload has been converted\*\* ```php if (Alfredo::checkQueuedPayload('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx')) { // returns a boolean // Payload has been converted and is ready to be downloaded } ``` \*\*Get converted payload from queue\*\* ```php $pdf = Alfredo::getQueuedPayload('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); ``` \*\*Stream converted payload from queue\*\* ```php $pdf = Alfredo::getQueuedPayload('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $response = Alfredo::stream($pdf); ``` License
=======

[](#license)

MIT

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cc2496b3830171f38ba41453bc043026aa9f7a9ef1e6a44a93ec22e0c09c793?d=identicon)[IssetBV](/maintainers/IssetBV)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/issetbv-alfredo-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/issetbv-alfredo-laravel/health.svg)](https://phpackages.com/packages/issetbv-alfredo-laravel)
```

PHPackages © 2026

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