code for article pfeilbr/bref-php-lambda-playground
learn bref, deploy and run serverless PHP applications
Prerequisites
Running
# install
composer require bref/bref
# init
vendor/bin/bref init
# edit `index.php`
# deploy
serverless deploy
# test / invoke
serverless invoke -f "function"
# test / invoke with event data
serverless invoke --function "function" --data '{"name": "foo"}'
Twitter • Reddit