Require this package in your composer.json and update composer. This will download the package and the dompdf + fontlib libraries also. After updating composer, add the ServiceProvider to the providers array in config/app.php. You can optionally use the facade for shorter code. To change the configuration, copy the config file to your config folder and enable it in bootstrap/app.php. You can create a new DOMPDF instance and load a HTML string, file or view name. You can save it to a file, or stream (show in browser) or download. You can change the orientation and paper size, and hide or show errors (by default, errors are shown when debug is on). If you need the output as a string, you can get the rendered PDF with the output() function, so you can save/output it yourself. Use php artisan vendor:publish to create a config file located at config/dompdf.php which will allow you to define local configurations to change some settings (default paper etc).

Features

  • Create a new DOMPDF instance and load a HTML string
  • You can chain the methods
  • You can change the orientation and paper size
  • You can hide or show errors
  • Use your ConfigProvider to set certain keys
  • The defaults configuration settings are set in config/dompdf.php

Project Samples

Project Activity

See All Activity >

Categories

Web Development

License

MIT License

Follow DOMPDF Wrapper for Laravel

DOMPDF Wrapper for Laravel Web Site

Other Useful Business Software
EHS Software and Management System Icon
EHS Software and Management System

ERA offers the only full EHS&Q platform with advanced automation to drive your complete compliance.

ERA Environmental Software Solutions develops web-based EHS management software for small, medium, and large manufacturers needing to comply with federal, provincial, and state regulations, monitor their air, water, and waste emissions and other environmental outputs, author and manage Safety Data Sheets (SDS) in more than 40 languages, or standardize their Health and Safety procedures for incident and inspection tracking, training delivery, and audit management. The platform also supports comprehensive reporting for programs like TRI, Tier II, Title V, NEI, and NPRI. Companies across the automotive, aerospace, general manufacturing, and paints and coatings industries, to name a few, rely on ERA’s all-in-one, SOC 2 Type II certified SaaS for complete coverage of their EHS needs.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of DOMPDF Wrapper for Laravel!

Additional Project Details

Programming Language

PHP

Related Categories

PHP Web Development Software

Registered

2021-11-09