diff --git a/README.md b/README.md index 31ff529..3e151e9 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,16 @@ Also a symlink will be created in your configured bin/ folder, for example: vendor/bin/wkhtmltopdf-i386 +### Usage + +You can use the path constant to easily locate the binary in the PHP codebase: + +``` php +$path = \h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH; +``` + +For realpath use following script + +``` php +$realpath = realpath(\h4cc\WKHTMLToPDF\WKHTMLToPDF::PATH); +``` diff --git a/WKHTMLToPDF.php b/WKHTMLToPDF.php new file mode 100644 index 0000000..f922b37 --- /dev/null +++ b/WKHTMLToPDF.php @@ -0,0 +1,7 @@ +