Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

muazanqureshi's avatar

Install another Package with my Package

Hello, I m using dompdf to generate pdf but these pdfs were generated through my custom package. I want to install dompdf along with my package when a user installs my package the other package (dompdf) will automatically install with it.

0 likes
2 replies
Sinnbeck's avatar

So add it to the "dependecies" in the packages composer.json

1 like
Tray2's avatar

That should be in your package's composer.json file as a requirement.

1 like

Please or to participate in this conversation.