How to install PhpPresentation

641 Views Asked by At

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

There are 1 best solutions below

1
On

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();