Skip to content
Go to file

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Shotstack PHP Examples

  • text.php - Create a HELLO WORLD video title against black background with a zoom in motion effect and 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 preset font styles, a soundtrack, zoom in motion effect and wipe right transition.

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

  • captions.php - Parse an SRT transcript file and apply the captions to a video.

  • layers.php - Layer a title over a background video using tracks. The title includes a zoom effect and is semi-transparent.

  • luma.php - Create animated transition effects using a luma matte and the luma matte asset type.

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


Install the required dependencies including the Shotstack SDK

composer install

Set your API key

The demos use the staging endpoint by default so use your provided staging key:

export SHOTSTACK_KEY=your_key_here

Windows users (Command Prompt):

set SHOTSTACK_KEY=your_key_here

You can get an API key via the Shotstack web site.

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


Shotstack PHP demos - Edit videos in the cloud with PHP and the Shotstack Video Editing API




No releases published


No packages published
You can’t perform that action at this time.