Cookbook
Integrate phppptx with Zend Framework 2
Warning
To run phppptx with Zend Framework 2 it is mandatory to use the package that supports namespaces. This package is available for Advanced and Premium licenses.
- 1- Copy the content of the phppptx package and paste it in the directory vendor/phppptx.
- 2- Open the file composer.json and add the following classmap in the autoload section:
"vendor/phppptx/Classes/Phppptx"
- 3- Update the autoloader of Composer:
With these three easy steps you are ready to work with phppptx. As a practical example, let's create a PPTX in a controller and save it in the public directory with the name output.pptx: