Cookbook

Integrate phppptx with CodeIgniter

Using phppptx with CodeIgniter is as simple as copying the phppptx content package to the application/libraries/phppptx directory and load the CreatePptx class.

To have the phppptx API methods available, just load the library in the controller:

In order to save the PPTX, the presentations folder in the APPATH path must have read/write permissions.

Warning

To run phppptx with CodeIgniter 4 it is mandatory to use the package that supports namespaces. This package is available for Advanced and Premium licenses.