PHP templates for OpenFaaS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
template using namespace + classmap-authoritative Jan 26, 2018
README.md using namespace + classmap-authoritative Jan 26, 2018

README.md

PHP templates for openfaas

Versions

There are templates for PHP 5.6 and latest stable version of PHP 7

Usage:

faas-cli template pull https://github.com/itscaro/openfaas-template-php
faas-cli new my-function-in-php7 --lang php5
faas-cli new my-function-in-php7 --lang php

You will find in the newly created directories my-function-in-php5 and my-function-in-php7:

  • src/Handler.php : entrypoint
  • php-extension.sh : is for installing PHP extensions if needed
  • composer.json : is for dependency management