Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 4, 2024 via composer

barryvdh/laravel-dompdf v0.9.0

A DOMPDF Wrapper for Laravel
Package summary
Share
13
issues
8
high severity
vulnerability
8
3
moderate severity
license
3
2
low severity
license
2
4
licenses
18
MIT
1
LGPL-2.1
1
LGPL-2.1-or-later
1
LGPL-3.0
Package created
23 Jun 2013
Version published
27 Dec 2020
Maintainers
1
Total deps
21
Direct deps
2
License
MIT

Issues

13

8 high severity issues

high
via: dompdf/dompdf@v1.2.2
via: dompdf/dompdf@v1.2.2
via: dompdf/dompdf@v1.2.2
via: dompdf/dompdf@v1.2.2
via: dompdf/dompdf@v1.2.2
via: dompdf/dompdf@v1.2.2
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v1.2.2
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v1.2.2
Recommendation: Validate that the package complies with your license policy
via: dompdf/dompdf@v1.2.2
Collapse
Expand

2 low severity issues

low
via: dompdf/dompdf@v1.2.2
via: dompdf/dompdf@v1.2.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
18 Packages, Including:
barryvdh/laravel-dompdf@v0.9.0
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
illuminate/collections@v8.83.27
illuminate/contracts@v8.83.27
illuminate/macroable@v8.83.27
illuminate/support@v8.83.27
nesbot/carbon@2.72.3
psr/clock@1.0.0
psr/container@1.1.2
psr/simple-cache@1.0.1
sabberworm/php-css-parser@v8.5.1
symfony/deprecation-contracts@v3.5.0
symfony/polyfill-mbstring@v1.29.0
symfony/polyfill-php80@v1.29.0
symfony/translation@v6.4.7
symfony/translation-contracts@v3.5.0
voku/portable-ascii@1.6.1

GNU Lesser General Public License v2.1 only

Weakly Protective
OSI Approved
Deprecated
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
sublicense
Must
include-original
include-copyright
include-license
disclose-source
state-changes
include-notice
1 Packages, Including:
dompdf/dompdf@v1.2.2

GNU Lesser General Public License v2.1 or later

Weakly Protective
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
phenx/php-font-lib@0.5.6

GNU Lesser General Public License v3.0 only

Weakly Protective
OSI Approved
Deprecated
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
use-patent-claims
Cannot
sublicense
hold-liable
Must
include-original
state-changes
disclose-source
include-license
include-copyright
include-install-instructions
1 Packages, Including:
phenx/php-svg-lib@0.4.1
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/dompdfv1.2.2-LGPL-2.1
prod
8
3
2
illuminate/supportv8.83.2783.71 kBMIT
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".