Overview
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.
Installation
There are two ways to install Composer. Locally as part of your project, or globally as a system wide executable.
Installation
- Windows Download
How to use composer
Syntax:
composer require <package-name>
Example:
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