The work on what would be Bref 2.0 started in October 2021, about 1.5 year ago. We went through many different strategies, experiments, rewrites, over 700 commits to finally land with the stable release.
So far, Bref has been installed more than 2 million times and powers more than 10 billion Lambda executions (aka requests) every month*.
Bref 2.0 lets us configure the runtime and PHP version in a much simpler way in serverless.yml (#1394). Here's an example below.
As you can see, we no longer have to set runtime: provided.al2 and add the Bref layers. We can now directly set a PHP runtime (php-81, php-81-fpm, php-81-console) and Bref will transform this into the proper runtime + layers configuration.
This works for all the Bref runtimes (FPM, function and console) and all supported PHP versions (80, 81, and 82 at the moment). Here's a recap:
However, that bridge was lagging behind and was limited in some features. The community (CacheWerk, Till Kruss, and George Boot) maintained a better alternative at cachewerk/bref-laravel-bridge.