Bref comes as a Composer package and helps you deploy PHP applications to AWS and run them on AWS Lambda.
Bref uses the Serverless framework to configure and deploy serverless applications. Being the most popular tool, Serverless comes with a huge community, a lot of examples online and a simple configuration format.
After installing an initing Bref …
composer require bref/bref
vendor/bin/bref init
… all you need to do is wrap your code logic into the Bref-provided lambda
fn:
require __DIR__.'/vendor/autoload.php';
lambda(function (array $event) {
// Do anything you want here
// For example:
return 'Hello ' . ($event['name'] ?? 'world');
});