Installation
Contents
[
Hide
]
Configure environment
- Install PHP 7, add path to PHP to system
PATH
variable and setallow_url_include
toOn
inphp.ini
file. - Install JRE 8. Set the
JAVA_HOME
enviroment variable as a path to the installed JRE location. - Install Apache Tomcat 8.0.
Download Aspose.Slides for PHP via Java
packagist
is the easiest way to download Aspose.Slides for PHP via Java.
To install Aspose.Slides using Packagist, run this command: composer require aspose/slides
Configure Apache Tomcat
- Download PHP/Java Bridge (php-java-bridge_x.x.x_documentation.zip) from http://php-java-bridge.sourceforge.net/pjb/download.php and extract
JavaBridge.war
file to tomcatwebapps
folder. - Start Apache Tomcat service.
- Download “Aspose.Slides for PHP via Java” and extract it to aspose.slides folder. Copy
jar/aspose-slides-x.x-php.jar
file towebapps\JavaBridge\WEB-INF\lib
folder. If you want to use php 8, replace the originalJava.inc
from php-java bridge withJava.inc
fromJava.inc.php8.zip
. - Restart Apache Tomcat service.
- Run
example.php
inaspose.slides
folder to run the example with this command:
php example.php