This repository contains a sample "Hello World" function written in PHP. You can deploy it on DigitalOcean's App Platform as a Serverless Function component.
Note: This feature is currently in a limited beta release. Following these steps may result in charges for the use of DigitalOcean services.
- You need a DigitalOcean account. If you don't already have one, you can sign up at https://cloud.digitalocean.com/registrations/new.
- You need to have access to the beta release of App Platform Serverless Functions. You can sign up for notifications about beta and early access releases using this form.
During the beta, documentation for Serverless Functions will be available to beta participants only in the Serverless Functions Closed Beta Google Doc. Please refer to this document for instructions on how to deploy Serverless Functions in App Platform.
Accessing the function with the ?name=
query parameter will greet the specified name. For example, ?name=Alice
will return Hello Alice
. Using no query parameters will return Hello stranger
.
You can learn more about App Platform and how to manage and update your application in the official App Platform Documentation.