🎥 Make videos programmatically with React
add composer pacakge
Jonny Burger4fbfb2983d72
diff --git a/packages/docs/docs/lambda/php.md b/packages/docs/docs/lambda/php.mdindex bc95da091f..5950f2c4af 100644--- a/packages/docs/docs/lambda/php.md+++ b/packages/docs/docs/lambda/php.md@@ -6,7 +6,9 @@ sidebar_label: Rendering from PHPcrumb: "@remotion/lambda"----To trigger a Lambda render using PHP, you need to use a PHP client. This is installed using `composer` with the package `remotion/lambda-php`. Below is a snippet showing how to initiate a render request and get its status. Note the following before continuing:+To trigger a Lambda render using PHP, install the `remotion/lambda-php` package using `composer`.++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](/docs/lambda/setup).- Sending large input props (>200KB) is not supported with PHP at the moment.@@ -47,12 +49,12 @@ print_r($renderResponse);/***** Response- *+ *stdClass Object([bucketName] => remotionlambda-apsoutheast2-xxxx[renderId] => xxxxxxx- )+ )*/// Get render progress@@ -108,6 +110,7 @@ print_r($renderProgressResponse);*/```+## See also- [Using Lambda without IAM user](/docs/lambda/without-iam)diff --git a/packages/it-tests/src/monorepo/php-package.test.ts b/packages/it-tests/src/monorepo/php-package.test.tsindex d01dc8b3b2..84bc2cb3b5 100644--- a/packages/it-tests/src/monorepo/php-package.test.ts+++ b/packages/it-tests/src/monorepo/php-package.test.ts@@ -22,6 +22,10 @@ test("Set the right version for phpunit", () => {});test("PHP package should create the same payload as normal Lambda package", async () => {+ execSync("php composer.phar install", {+ cwd: path.join(process.cwd(), "..", "lambda-php"),+ stdio: "inherit",+ });const phpOutput = execSync("phpunit ./src/PHPClientTest.php", {cwd: path.join(process.cwd(), "..", "lambda-php"),});diff --git a/packages/lambda-php/composer.phar b/packages/lambda-php/composer.pharnew file mode 100755index 0000000000..79e858ef12Binary files /dev/null and b/packages/lambda-php/composer.phar differ