Bref provides the tools and documentation to easily deploy and run serverless PHP applications.
If you haven't done so already, start at the Bref docs and follow the first steps. This repo picks up where the deployment automation section of the documentation leaves off. If you want a detailed explanation of the choices made here, check out my Medium post.
The Travis configuration file included in this repo accounts for the complexities of Bref deployments -- specifically, the requirement for the build image to have the correct versions of both Python and PHP installed. To accomplish this, I've used the Ubuntu Xenial generic
build environment, and used phpenv
-- which is included on all Travis CI images that include PHP -- to set the version needed to support Bref (^7.2.0).
I've used some Composer scripts to make the calls in the .travis.yml
file a little cleaner. I highly recommend the use of Composer scripts.
Feel free to use PRs for questions, or get at me on Twitter.