Hello,
phppptx can create PPTX presentations from scratch or using templates.
We recommend you read the Practical guide, where you can read the first steps using phppptx and some samples. For example, Working with templates to learn how to open a PPTX template and replace contents.
On the API documentation and the package you can find samples using each method.
Regards.