Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active June 2, 2021 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fu-sen/845b37da6a9cee4457440df5316e08f7 to your computer and use it in GitHub Desktop.
Save fu-sen/845b37da6a9cee4457440df5316e08f7 to your computer and use it in GitHub Desktop.
Use PHP 8.0 with IBM Cloud Functions
ibmcloud fn action create <ACTION-NAME> --docker openwhisk/action-php-v8.0 FILE.php --web true

If you were already using the PHP 7.3 runtime, you can run ibmcloud fn action update instead.
You can zip multiple files with .zip instead of FILE.php and specify it.
The source will work almost in common with the PHP 7.3 runtime.
This operation requires CLI to edit the source. (Cannot be edited from the console)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment