From a66785deb00b2e7692ae7ccbdb222ba252972a49 Mon Sep 17 00:00:00 2001 From: Arjan Schouten Date: Wed, 7 Oct 2015 18:36:34 +0200 Subject: [PATCH] Added autoload info for composer projects to README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 14e7283..5a01b67 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ $app->register(ArjanSchouten\HtmlMinifier\Laravel\HtmlMinifierServiceProvider::c #### Plain php projects with composer If you're not using a php framework you can use the minifier by using the code below: ```php +//include the composer autoloader +require __DIR__ . '/vendor/autoload.php'; + // create a minify context which will be used through the minification process $context = new MinifyContext(new PlaceholderContainer()); // save the html contents in the context