How can Composer be used to install FPDI in PHP for easier management of dependencies?
To install FPDI in PHP for easier management of dependencies, Composer can be used. Composer is a dependency management tool for PHP that allows you to easily install and manage libraries and packages. By creating a `composer.json` file and running `composer install`, Composer will download and install FPDI along with any required dependencies.
// composer.json
{
"require": {
"setasign/fpdi": "^2.0"
}
}
```
After creating the `composer.json` file, run the following command in your terminal:
```bash
composer install