To set up Bref correctly please complete all the sections below.
You will need an AWS account. To create one, go on aws.amazon.com and click Sign up.
AWS has a generous free tier that will usually allow you to deploy your first test applications for free.
Bref relies on the Serverless framework and AWS access keys to deploy applications. You will need to:
serverlesscommand (more details here):
npm install -g serverless
setup those keys by running:
serverless config credentials --provider aws --key <key> --secret <secret>
If you already use the
awsCLI command, or if you want to use environment variables instead (for example for a shared server like a CI) you can read the full guide.
Install Bref in your project using Composer:
composer require bref/bref
Make sure that you have installed a version greater than or equal to 0.5.* of Bref.
To run the latest version of Bref you must have PHP 7.2 or greater! If you are using PHP 7.1 or less an older (outdated) version of Bref will be installed instead.
bref command line tool can now be used by running
vendor/bin/bref in your project.
Read the first steps guide to create and deploy your first serverless application using Bref.