2017 © Pedro Peláez
 

symfony-bundle pdfcrowd-bundle

A Symfony2 bundle for working with the PDFCrowd API

image

hiren/pdfcrowd-bundle

A Symfony2 bundle for working with the PDFCrowd API

  • Thursday, April 14, 2016
  • by hirengosalia86
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

HirenPDFCrowdBundle

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

Installation

Using composer

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

Add the bundle to your application kernel

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


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

Usage

Controller

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

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

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

The Versions

14/04 2016

dev-master

9999999-dev https://github.com/hirengosalia86/HirenPDFCrowdBundle

A Symfony2 bundle for working with the PDFCrowd API

  Sources   Download

MIT

The Requires

 

by Hiren Gosalia

pdf pdfcrowd

14/04 2016

dev-patch-1

dev-patch-1 https://github.com/hubertperron/AmpPDFCrowdBundle

A Symfony2 bundle for working with the PDFCrowd API

  Sources   Download

MIT

The Requires

 

by Hubert Perron

pdf pdfcrowd