Composer is dependency manager in PHP. it allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
It supports a "global" project for convenience to the global command.
There are two ways to install Composer. Locally as part of your project, or globally as a system wide executable.
- Windows Download
How to use composer
composer require <package-name>
HTML to PDF converter
composer require dompdf/dompdf
Send Email using PHP
composer require phpmailer/phpmailer
Read, Create and Write Spreadsheet documents
composer require phpoffice/phpspreadsheet