donglangtun1850 2018-12-29 15:16
浏览 138

如何安装PhpPresentation

I've manually installed PhpPresentation from GitHub on Windows server 2008 (IIS 7) But when I run example from this installation - it does not work and show different errors. I managed to fix few errors. But right now it show error that I can not find on the Internet:

PhpOffice\PhpPresentation\ComparableInterface not found in ......\Color.php

How can I figure out what is wrong with installation and fix it?

Thank you

  • 写回答

1条回答 默认 最新

  • duaevb1511 2019-01-02 13:33
    关注

    as described on Packagist, PhpPresentation depends on the PhpOffice\Common package :

    https://github.com/PHPOffice/Common

    So you download it and install it, and use it as :

    include 'PhpOffice\PHPPresentation\Autoloader.php'; 
    include 'PhpOffice\Common\Autoloader.php'; 
    \PhpOffice\Common\Autoloader::register();
    \PhpOffice\PHPPresentation\Autoloader::register();
    
    评论

报告相同问题?

悬赏问题

  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统