Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via composer

barryvdh/laravel-dompdf v2.0.1

A DOMPDF Wrapper for Laravel
Package summary
Share
4
issues
3
moderate severity
license
3
1
low severity
license
1
4
licenses
20
MIT
1
LGPL-2.1
1
LGPL-2.1-or-later
1
LGPL-3.0-or-later
Package created
23 Jun 2013
Version published
12 Jan 2023
Maintainers
1
Total deps
23
Direct deps
2
License
MIT

Issues

4

3 moderate severity issues

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

1 low severity issue

low
via: dompdf/dompdf@v2.0.8
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
20 Packages, Including:
barryvdh/laravel-dompdf@v2.0.1
carbonphp/carbon-doctrine-types@3.2.0
doctrine/inflector@2.0.10
illuminate/collections@v10.48.10
illuminate/conditionable@v10.48.10
illuminate/contracts@v10.48.10
illuminate/macroable@v10.48.10
illuminate/support@v10.48.10
masterminds/html5@2.9.0
nesbot/carbon@2.72.3
psr/clock@1.0.0
psr/container@2.0.2
psr/simple-cache@3.0.0
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@2.0.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@v2.0.8

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 or later

Weakly Protective
OSI Approved
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.5.4
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/dompdfv2.0.8-LGPL-2.1
prod
3
1
illuminate/supportv10.48.10-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".