2017 © Pedro Peláez
 

symfony-bundle pdfcrowd-bundle

A Symfony2 bundle for working with the PDFCrowd API

image

kinncj/pdfcrowd-bundle

A Symfony2 bundle for working with the PDFCrowd API

  • Monday, February 8, 2016
  • by kinncj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

AmpPDFCrowdBundle

This bundle act as a thin wrapper over the PDFCrowd API to ease integration with Symfony., (*1)

Build Status, (*2)

Installation

Using composer

$ composer require kinncj/pdfcrowd-bundle

Add the bundle to your application kernel

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


## Configuration ``` yaml amp_pdf_crowd: username: your-username apikey: the-api-key

Usage

Controller

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

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

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


### Command ``` bash $ app/console pdfcrowd:convert https://github.com/hubertperron/AmpPDFCrowdBundle web/pdfs/example.pdf

The Versions

08/02 2016

dev-master

9999999-dev https://github.com/hubertperron/AmpPDFCrowdBundle

A Symfony2 bundle for working with the PDFCrowd API

  Sources   Download

MIT

The Requires

 

by Hubert Perron

pdf pdfcrowd

08/02 2016

v0.1.0

0.1.0.0 https://github.com/hubertperron/AmpPDFCrowdBundle

A Symfony2 bundle for working with the PDFCrowd API

  Sources   Download

MIT

The Requires

 

by Hubert Perron

pdf pdfcrowd