Skip to content

Commit

Permalink
Merge pull request #53 from verschoof/patch-1
Browse files Browse the repository at this point in the history
Update README.markdown
  • Loading branch information
psliwa committed Oct 4, 2014
2 parents 1dec2d7 + e5fb358 commit 6727782
Showing 1 changed file with 5 additions and 29 deletions.
34 changes: 5 additions & 29 deletions README.markdown
Expand Up @@ -14,36 +14,12 @@ Installation

"require": {
...
"psliwa/pdf-bundle": "dev-master"
},
"minimum-stability": "dev",


2. Add this bundle and [PHPPdf][1] library to deps file and update vendors:

[PdfBundle]
git=git://github.com/psliwa/PdfBundle.git
target=/bundles/Ps/PdfBundle
[PHPPdf]
git=git://github.com/psliwa/PHPPdf.git
version=origin/1.1.x

3. Download dependencies (for example ZF2) of PHPPdf library. You can skip this step, if your application has had dependency on ZF2 framework and [Imagine][2] already. For more details see [installation section](https://github.com/psliwa/PHPPdf#installation) of PHPPdf documentation.

php vendor/PHPPdf/vendors.php

4. Register bundle, [PHPPdf][1], [Imagine][2] and ZF libraries in autoloader:

//app/autoload.php
$loader->registerNamespaces(array(
'Ps' => __DIR__.'/../vendor/bundles',
'PHPPdf' => __DIR__.'/../vendor/PHPPdf/lib',
'Imagine' => array(__DIR__.'/../vendor/PHPPdf/lib', __DIR__.'/../vendor/PHPPdf/lib/vendor/Imagine/lib'),
'Zend' => __DIR__.'/../vendor/PHPPdf/lib/vendor/Zend/library',//If you have used ZF2 packages already, you should skip this entry
'ZendPdf' => __DIR__.'/../vendor/PHPPdf/lib/vendor/ZendPdf/library',
));
"psliwa/pdf-bundle": "~1.0"
},
run `composer update psliwa/pdf-bundle` to install the bundle

5. Register bundle in AppKernel:
2. Register bundle in AppKernel:

//app/AppKernel.php
public function registerBundles()
Expand Down

0 comments on commit 6727782

Please sign in to comment.