Skip to content

tkotosz/fn-php-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fn-php-init

Init image for fnproject which can be used to create fn functions in php.

Fn function uses fn-php-fdk to make it easy to create functions.

Build

Build new version of this init-image using the build.sh included in this repository.

Usage

  1. Create new function
fn init --init-image tkotosz/fn-php-init myfunc
  1. Deploy it
fn -v deploy --local --app myapp myfunc
  1. Run it
fn invoke myapp myfunc

You should see the result:

{"message":"Hello World"}

or

echo -n '{"name":"Tom"}' | fn invoke myapp myfunc

You should see the result:

{"message":"Hello Tom"}

For more examples see the examples in the fn-fdk-php repository.

About

Fn php init image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published