Skip to content
Browse files

Add CI using Travis

  • Loading branch information...
1 parent 76ddbd8 commit fa5cd10b90d098b9ce83140e8171c1f8ebac851b @shaneog shaneog committed May 17, 2012
Showing with 9 additions and 2 deletions.
  1. +5 −0 .travis.yml
  2. +4 −2 README.markdown
View
5 .travis.yml
@@ -0,0 +1,5 @@
+language: php
+
+php:
+ - 5.3
+ - 5.4
View
6 README.markdown
@@ -1,11 +1,13 @@
# Snappy
-Snappy is a PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page.
+Snappy is a PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page.
It uses the excellent webkit-based [wkhtmltopdf and wkhtmltoimage](http://code.google.com/p/wkhtmltopdf/)
available on OSX, linux, windows.
You will have to download wkhtmltopdf 0.10.0 >= rc2 in order to use Snappy.
+[![Build Status](https://secure.travis-ci.org/KnpLabs/snappy.png?branch=master)](http://travis-ci.org/KnpLabs/snappy)
+
## Usage
```php
@@ -21,7 +23,7 @@ $snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
$snappy = new Pdf();
$snappy->setBinary('/usr/local/bin/wkhtmltopdf');
-// Display the resulting image in the browser
+// Display the resulting image in the browser
// by setting the Content-type header to jpg
$snappy = new Pdf('/usr/local/bin/wkhtmltopdf');
header('Content-Type: application/pdf');

0 comments on commit fa5cd10

Please sign in to comment.
Something went wrong with that request. Please try again.