Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjanSchouten committed Oct 14, 2015
2 parents b61a617 + a66785d commit b709a2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b709a2d

Please sign in to comment.