Shotstack PHP demos - Edit videos in the cloud with PHP and the Shotstack Video Editing API
Switch branches/tags
Nothing to show
Clone or download

README.md

Shotstack PHP Examples

  • text.php - Create a HELLO WORLD video title against black background with a soundtrack.

  • images.php - Takes an array of image URLs and creates a video with a soundtrack and simple zoom in effect.

  • titles.php - Create a video to demo titles using the available presets with soundtrack and fade in/out transition.

  • filters.php - Applies filters to a video clip, including a title with the name of the filter and a soundtrack.

  • status.php - Shows the status of a render task and the output video URL. Run this after running one of the render examples.

Installation

Install the required dependencies including the Shotstack SDK

composer install

Set your API key

export SHOTSTACK_KEY=your_key_here

Run an example

The examples directory includes a number of examples demonstrating the capabilities of the Shotstack API.

To run the images example:

php examples/images.php