Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Pdfcrowd Bundle Laravel Package

amp/pdfcrowd-bundle

View on GitHub
Deep Wiki
Context7

AmpPDFCrowdBundle

This bundle act as a thin wrapper over the PDFCrowd API to ease integration with Symfony.

Build Status

Installation

Using composer

{
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "pdfcrowd/pdfcrowd-php",
                "version": "2.5",
                "dist": {
                    "url": "http://pdfcrowd.com/static/clients/php/pdfcrowd-2.5-php.zip",
                    "type": "zip"
                },
                "autoload": {
                    "files": ["pdfcrowd.php"]
                }
            }
        }
    ],
    "require": {
        "amp/pdfcrowd-bundle": "dev-master"
    }
}

Add the bundle to your application kernel

// File: app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Amp\PDFCrowdBundle\AmpPDFCrowdBundle(),
        // ...
    );
}

Configuration

amp_pdf_crowd:
    username: your-username
    apikey: the-api-key

Usage

Controller

$pdfCrowd = $this->get('amp_pdf_crowd.api');
$url = $this->generateUrl('route_name', array(), true);

$pdfData = $pdfCrowd->convertURI($url);
$fileName = $this->container->getParameter('kernel.root_dir') . '/../web/pdfs/example.pdf';

file_put_contents($fileName, $pdfData); // Make sure this directory is writable

Command

 $ app/console pdfcrowd:convert https://github.com/hubertperron/AmpPDFCrowdBundle web/pdfs/example.pdf
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels