Permalink
Browse files

Add missing note about required custom packages definition

  • Loading branch information...
1 parent 3e0ffe4 commit 39c64d910d25823b82ac426eb12a6275a66a75d0 @stloyd stloyd committed Feb 14, 2013
Showing with 34 additions and 2 deletions.
  1. +34 −2 README.markdown
View
@@ -57,7 +57,7 @@ $snappy->setOption('cookie', array('key' => 'value', 'key2' => 'value2'));
## wkhtmltopdf binary as composer dependencies
-If you want to download wkhtmltopdf with composer you add to composer.json
+If you want to download wkhtmltopdf with composer you add to `composer.json`:
```json
{
@@ -66,7 +66,8 @@ If you want to download wkhtmltopdf with composer you add to composer.json
}
}
```
-or this if you are in 64 bit based system
+
+or this if you are in 64 bit based system:
```json
{
@@ -76,6 +77,37 @@ or this if you are in 64 bit based system
}
```
+> __NOTE__: to be able to use those custom defined packages you need to copy into your `composer.json` following code:
+
+```json
+{
+ "repositories": [
+ {
+ "type": "package",
+ "package": {
+ "name": "google/wkhtmltopdf-amd64",
+ "version": "0.11.0-RC1",
+ "dist": {
+ "url": "http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2",
+ "type": "tar"
+ }
+ }
+ },
+ {
+ "type": "package",
+ "package": {
+ "name": "google/wkhtmltopdf-i386",
+ "version": "0.11.0-RC1",
+ "dist": {
+ "url": "http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2",
+ "type": "tar"
+ }
+ }
+ }
+ ]
+}
+```
+
And then you can use it
```php

0 comments on commit 39c64d9

Please sign in to comment.