fastadmin通过composer安装workerman,命令如下:


composer require workerman/workerman
执行提示如下错误:



  Problem 1
    - phpoffice/phpspreadsheet 1.10.1 requires ext-fileinfo * -> the requested P
HP extension fileinfo is missing from your system.
    - phpoffice/phpspreadsheet 1.10.1 requires ext-fileinfo * -> the requested P
HP extension fileinfo is missing from your system.
    - Installation request for phpoffice/phpspreadsheet (installed at 1.10.1, re
quired as ^1.2) -> satisfiable by phpoffice/phpspreadsheet[1.10.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - D:\phpStudy\PHPTutorial\php\php-7.1.13-nts\php.ini
  You can also run `php --ini` inside terminal to see which files are used by PH
P in CLI mode.

解决办法:


使用composer update之后重新安装,命令如下


composer update
更新执行如下图:



Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 7 updates, 1 removal
  - Removing markbaker/matrix (1.2.0)
  - Updating mtdowling/cron-expression (v1.2.1 => v1.2.3): Downloading (connecti
Downloading (100%)
  - Updating markbaker/complex (1.4.7 => 1.4.8): Downloading (100%)
  - Downgrading phpoffice/phpspreadsheet (1.10.1 => 1.5.2): Downloading (connect
Downloading (100%)
  - Updating symfony/polyfill-php70 (v1.13.1 => v1.14.0): Downloading (connectin
Downloading (100%)
  - Updating symfony/polyfill-mbstring (v1.13.1 => v1.14.0): Downloading (connec
Downloading (100%)
  - Updating symfony/http-foundation (v3.4.36 => v3.4.38): Downloading (connecti
Downloading (100%)
  - Updating symfony/options-resolver (v3.4.36 => v3.4.38): Downloading (connect
Downloading (100%)
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use d
ragonmantank/cron-expression instead.
Writing lock file
Generating autoload files

然后重新安装workerman,提示成功。
Using version ^4.0 for workerman/workerman
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing workerman/workerman (v4.0.2): Downloading (100%)
workerman/workerman suggests installing ext-event (For better performance. )
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use d
ragonmantank/cron-expression instead.
Writing lock file
Generating autoload files