https://www.shih.com.tw/test_mpdf.php
justins@NAS2F:/volume2/web$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "unlink('composer-setup.php');"justins@NAS2F:/volume2/web$ php composer-setup.php
All settings correct for using Composer
Downloading...
Composer (version 2.9.3) successfully installed to: /volume2/web/composer.phar
Use it: php composer.phar
justins@NAS2F:/volume2/web$ php -r "unlink('composer-setup.php');"
justins@NAS2F:/volume2/web$ # 語法:php82 composer.phar require 套件名稱
justins@NAS2F:/volume2/web$ php82 composer.phar require mpdf/mpdf
./composer.json has been created
Running composer update mpdf/mpdf
Loading composer repositories with package information
Updating dependencies
Lock file operations: 8 installs, 0 updates, 0 removals
- Locking mpdf/mpdf (v8.2.7)
- Locking mpdf/psr-http-message-shim (v2.0.1)
- Locking mpdf/psr-log-aware-trait (v3.0.0)
- Locking myclabs/deep-copy (1.13.4)
- Locking paragonie/random_compat (v9.99.100)
- Locking psr/http-message (2.0)
- Locking psr/log (3.0.2)
- Locking setasign/fpdi (v2.6.4)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 8 installs, 0 updates, 0 removals
- Downloading setasign/fpdi (v2.6.4)
- Downloading psr/log (3.0.2)
- Downloading psr/http-message (2.0)
- Downloading paragonie/random_compat (v9.99.100)
- Downloading myclabs/deep-copy (1.13.4)
- Downloading mpdf/psr-log-aware-trait (v3.0.0)
- Downloading mpdf/psr-http-message-shim (v2.0.1)
- Downloading mpdf/mpdf (v8.2.7)
- Installing setasign/fpdi (v2.6.4): Extracting archive
Unzipping using 7z 16.02 may result in incorrect file permissions. Install 7z 21.01+ or unzip to ensure you get correct permissions.
- Installing psr/log (3.0.2): Extracting archive
- Installing psr/http-message (2.0): Extracting archive
- Installing paragonie/random_compat (v9.99.100): Extracting archive
- Installing myclabs/deep-copy (1.13.4): Extracting archive
- Installing mpdf/psr-log-aware-trait (v3.0.0): Extracting archive
- Installing mpdf/psr-http-message-shim (v2.0.1): Extracting archive
- Installing mpdf/mpdf (v8.2.7): Extracting archive
2 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
3 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
No security vulnerability advisories found.
Using version ^8.2 for mpdf/mpdf
justins@NAS2F:/volume2/web$