<commit_before># Dompdf

Compatibility conversion of Thujohn/Pdf for Laravel Lumen 5.*
Simple Dompdf wrapper package (uses Dompdf stable version 0.5)

## Installation

Add `k98kurz/pdf-lumen` to `composer.json`.
```
"k98kurz/pdf-lumen": "dev-master"
```

Run `composer update` to pull down the latest version of Pdf.

Now open up `bootstrap/app.php` and add the service provider.
```php
	$app->register('k98kurz\Pdf\PdfServiceProvider');
```
Now add the alias.
```php
    class_alias('k98kurz\Pdf\PdfFacade', 'PDF');
```


## Usage

Show a PDF
```php
$app->get('/', function () {
	$html = '<html><body>'
			. '<p>Put your html here, or generate it with your favourite '
			. 'templating system.</p>'
			. '</body></html>';
	return PDF::load($html, 'A4', 'portrait')->show();
});
```

Download a PDF
```php
$app->get('/', function () {
	$html = '<html><body>'
			. '<p>Put your html here, or generate it with your favourite '
			. 'templating system.</p>'
			. '</body></html>';<commit_msg>Readme update<commit_after># Dompdf

Compatibility conversion of Thujohn/Pdf for Laravel Lumen 5.*
Simple Dompdf wrapper package (uses Dompdf stable version 0.5)

By: k98kurz/pdf-lumen

## Installation

Add `azakur4/pdf-lumen` to `composer.json`.
```
"azakur4/pdf-lumen": "dev-master"
```

Run `composer update` to pull down the latest version of Pdf.

Now open up `bootstrap/app.php` and add the service provider.
```php
	$app->register('azakur4\Pdf\PdfServiceProvider');
```
Now add the alias.
```php
    class_alias('azakur4\Pdf\PdfFacade', 'PDF');
```


## Usage

Show a PDF
```php
$app->get('/', function () {
	$html = '<html><body>'
			. '<p>Put your html here, or generate it with your favourite '
			. 'templating system.</p>'
			. '</body></html>';
	return PDF::load($html, 'A4', 'portrait')->show();
});
```

Download a PDF
```php
$app->get('/', function () {
	$html = '<html><body>'
			. '<p>Put your html here, or generate it with your favourite '
			. 'templating system.</p>'
			. '</body></html>';
{'fraction_non_alphanumeric': 0.1904047976011994, 'fraction_numerical': 0.010994502748625687, 'mean_word_length': 3.9925187032418954, 'pattern_counts': {'":': 2, '<': 27, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4239238', 'n_tokens_mistral': 764, 'n_tokens_neox': 703, 'n_words': 206}