No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 6 commits ahead, 5 commits behind itscaro:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

PHP templates for OpenFaaS


Open FAAS templates for PHP 5.6 and latest stable version of PHP 7 based on itscaro/openfaas-template-php


faas-cli add-template

faas-cli new php7function --lang php

faas-cli new php5function --lang php5

faas-cli build -f phpxfunction.yml

faas-cli deploy -f phpxfunction.yml

faas-cli invoke -f phpxfunction.yml myfunction or curl -d 'hello world'

PHP Version : 5.6.32

Data : hello world

To customise function in -> php5function - php7function:

  • Handler.php::handle() : entrypoint
  • : is for installing PHP extensions if needed
  • composer.json : is for dependency management