Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 27, 2024 via composer

barryvdh/laravel-dompdf v0.4.0

A DOMPDF Wrapper for Laravel
Package summary
Share
10
issues
2
critical severity
vulnerability
2
3
high severity
vulnerability
1
license
2
3
moderate severity
vulnerability
3
2
low severity
license
2
2
licenses
2
MIT
2
LGPL
Package created
23 Jun 2013
Version published
1 Jul 2014
Maintainers
1
Total deps
4
Direct deps
2
License
MIT

Issues

10

3 high severity issues

high
via: dompdf/dompdf@v0.6.2
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v0.6.2
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v0.6.2
Collapse
Expand

2 low severity issues

low
Recommendation: Read and validate the license terms
via: dompdf/dompdf@v0.6.2
Recommendation: Read and validate the license terms
via: dompdf/dompdf@v0.6.2
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
barryvdh/laravel-dompdf@v0.4.0
illuminate/support@v4.2.17

LGPL

Invalid
Not OSI Approved
2 Packages, Including:
dompdf/dompdf@v0.6.2
phenx/php-font-lib@0.2.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of barryvdh/laravel-dompdf 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
dompdf/dompdfv0.6.2-LGPL
prod
2
3
3
2
illuminate/supportv4.2.17-MIT
prod

Visualizations

Frequently Asked Questions

What does barryvdh/laravel-dompdf do?

The barryvdh/laravel-dompdf is a Laravel wrapper for the Dompdf HTML to PDF Converter. It allows you to seamlessly convert your HTML content to PDF format within your Laravel applications. Whether you're looking to convert HTML strings, files, or even views, this package has you covered.

How do you use barryvdh/laravel-dompdf?

To begin using the barryvdh/laravel-dompdf package, you first need to include it in your project by running the command composer require barryvdh/laravel-dompdf.

For Laravel, after completing the installation, use the package in your code by invoking a new DOMPDF instance and loading your HTML content. Here's an example:

    use Barryvdh\DomPDF\Facade\Pdf;

    $pdf = Pdf::loadView('pdf.invoice', $data);
    return $pdf->download('invoice.pdf');

For Lumen, after updating composer add the following lines to register provider in bootstrap/app.php

    $app->register(\Barryvdh\DomPDF\ServiceProvider::class);
    // To change the configuration, copy the config file to your config folder
    $app->configure('dompdf');

You could also use the App container to generate a PDF from an HTML string, like so:

    $pdf = App::make('dompdf.wrapper');
    $pdf->loadHTML('<h1>Test</h1>');
    return $pdf->stream();

In addition to these, You can also save, stream, or download the converted PDF, change the paper size, orientation and more.

Where are the barryvdh/laravel-dompdf docs?

The detailed documentation of barryvdh/laravel-dompdf is provided directly inside the README of the GitHub repository at https://github.com/barryvdh/laravel-dompdf.git. It includes information on installation, usage, and configuration, also providing useful examples and tips. For additional configurations and options, check the config/dompdf.php file in your application, which will be created after running php artisan vendor:publish --provider="Barryvdh\DomPDF\ServiceProvider".