我在unbuntu 16上用composer安装了两个软件包。
都已经安装好了,这是phpoffice的输出。
free
对于这两种方法,我都在其主页上使用了基本示例,例如phpoffice one(https://phpspreadsheet.readthedocs.io/en/develop/)
malloc
运行此命令时,我会在apache错误日志中得到以下内容(运行fpdi-tcpdf时,我会得到类似的消息。)
Using version ^1.5 for phpoffice/phpspreadsheet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing markbaker/complex (1.4.7): Downloading (100%)
- Installing psr/simple-cache (1.0.1): Downloading (100%)
- Installing phpoffice/phpspreadsheet (1.5.2): Downloading (100%)
phpoffice/phpspreadsheet suggests installing mpdf/mpdf (Option for rendering PDF with PDF Writer)
phpoffice/phpspreadsheet suggests installing dompdf/dompdf (Option for rendering PDF with PDF Writer)
phpoffice/phpspreadsheet suggests installing jpgraph/jpgraph (Option for renderi ng charts, or including charts with PDF or HTML Writers)
Writing lock file
Generating autoload files
答案 0 :(得分:0)
感谢Krlv
我使用以下命令找到了供应商文件夹:
composer config --list --global
然后替换
require 'vendor/autoload.php';
具有autoload.php的完整路径,并且可以正常工作。