This repository provides a quick example demonstrating how to access the Narakeet presentation to video API from PHP.
The example sends a request to generate a video from a local powerpoint file, then downloads the resulting video into a temporary local file.
This example works with PHP 7.4 and later. You can run it inside Docker (then it does not require a local PHP installation), or on a system with a PHP 7.4 or later.
- Copy the powerpoint file you want to convert into the directory with the example (so Docker can see it)
- Execute
make run NARAKEET_API_KEY=(YOUR API KEY) PPTX_FILE=(PPTX_FILE_TO_CONVERT)
- set the environment variables NARAKEET_API_KEY and PPTX_FILE
- execute
php main.php
You can use the demo.pptx
file in this directory as a quick example. Execute
make run NARAKEET_API_KEY=(YOUR API KEY) PPTX_FILE=demo.pptx