Browse Source

code example

Sergio Álvarez 1 year ago
parent
commit
9d6cc2eded
3 changed files with 8 additions and 0 deletions
  1. 1 0
      .gitignore
  2. 1 0
      build.sh
  3. 6 0
      src/hello.php

+ 1 - 0
.gitignore

@@ -2,3 +2,4 @@ composer*
 deploy.md
 runtime*
 vendor*
+*.zip

+ 1 - 0
build.sh

@@ -29,3 +29,4 @@ mv runtime.zip ../
 cd ..
 
 zip -r vendor.zip vendor
+zip -r lambda.zip src

+ 6 - 0
src/hello.php

@@ -0,0 +1,6 @@
+<?php
+
+function hello($data)
+{
+    return "Hello, {$data['name']}!";
+}