Triggering renders from PHP
available from v3.3.96
EXPERIMENTAL
This feature is new. Please report any issues you encounter. API may change inbetween patch versions.
To trigger a Lambda render using PHP, install the remotion/lambda package using composer. Use the same version as the remotion version you are using from NPM and pin the version by removing the ^ character in your composer.json.
Below is a snippet showing how to initiate a render request and get its status. Note the following before continuing:
- You first need to complete the Lambda setup.
- Set the following environment variables - the example below supports .envfiles:- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- REMOTION_APP_REGION
- REMOTION_APP_FUNCTION_NAME
- REMOTION_APP_SERVE_URL
 
- Sending large input props (>200KB) is not supported with PHP at the moment.
render.phpphp
render.phpphp
Changelog
- v4.0.15: The fields are now typed.- ->setInputProps()now works as intended, serializing the input props to JSON for you.
- v4.0.6: The response payload structure has changed. See the history of this page to see the previous structure.