NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #3873 most downloaded on Packagist
Symfony Messenger bridge to run with SQS and SNS on AWS Lambda with Bref
Latest stable
1.4.2
Last release 4 months ago
25 Jul 2026
Ships fairly regularly
a new release about every 2 months
Nearly every release is documented
notes for 33 of 34 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
34 releases · first in 2020
Drag across the ruler to compare, or tap a release to open it.
fix: HttpKernel Extension class deprecation by @atomiix in https://github.com/brefphp/symfony-messenger/pull/107
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.4.1...1.4.2
Return envelope back to caller after bus processing by @JustasStarred in https://github.com/brefphp/symfony-messenger/pull/105
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.4.0...1.4.1
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Support Bref v3 by @mnapoli in https://github.com/brefphp/symfony-messenger/pull/104
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.7...1.4.0
support symfony 8 by @nikow13 in https://github.com/brefphp/symfony-messenger/pull/100
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.6...1.3.7
fix: add exception to logger context in SqsConsumer by @thomask in https://github.com/brefphp/symfony-messenger/pull/99
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.5...1.3.6
Fix up issue for PHPStan (check if stamp is a SnsFifoStamp) by @victormacko in https://github.com/brefphp/symfony-messenger/pull/95
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.4...1.3.5
Removed deprecations for PHP 8.4 by @victormacko in https://github.com/brefphp/symfony-messenger/pull/94
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.3...1.3.4
bugfix: Set up empty messenger.transports parameter by @ahonymous in https://github.com/brefphp/symfony-messenger/pull/92
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.2...1.3.3
hotfix: not fount messenger.transport parameter by @ahonymous in https://github.com/brefphp/symfony-messenger/pull/91
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.1...1.3.2
fix: Set messenger.transports if config has not empty transports value by @ahonymous in https://github.com/brefphp/symfony-messenger/pull/90
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.3.0...1.3.1
Allow async-aws/sqs:^2.0 by @starred-gijs in https://github.com/brefphp/symfony-messenger/pull/89
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.2.1...1.3.0
chore: fixed phpstan issue in Unit/Service/Sns/SnsTransportNameResolv… by @robinlehrmann in https://github.com/brefphp/symfony-messenger/pull/85
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.2.0...1.2.1
Added TransportNameResolver for sns and sqs for automatic transport r… by @robinlehrmann in https://github.com/brefphp/symfony-messenger/pull/84
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.1.1...1.2.0
Deal with message group id during partial batch failure by @tyx in https://github.com/brefphp/symfony-messenger/pull/82
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.1.0...1.1.1
Support Symfony 7.0 by @smoench in https://github.com/brefphp/symfony-messenger/pull/80
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/1.0.0...1.1.0
There are no BC breaks with the previous 0.x version.
There are no BC breaks with the previous 0.x version.
I am tagging 1.0 because this repository is stable and should no longer be a 0.x version.
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.5.4...1.0.0
Celebrating 1 billion executions per month
November 2020 Matthieu Napoli
Bref started in November 2017, 3 years ago. Back then, running PHP on AWS Lambda was experimental at best.
Over the years, as the Bref community grew, as AWS features landed, and as contributors worked, creating serverless PHP applications has become a reality. Bref 0.2 has seen 37 releases. Bref 0.5 has 33. In total, we’ve released 89 versions since the project started.
Needless to say, Bref is stable and has been for a long time.
Indeed, Bref runs more than 1 billion requests and jobs every month!
“Serverless PHP” is no longer a niche, and running scalable PHP applications has never been simpler.
To celebrate, we’re finally releasing Bref 1.0 !
Thanks to Bref ping , we have an anonymous estimate of Bref’s usage, i.e. the number of monthly invocations (HTTP requests, worker jobs, etc.) across all users.
It illustrates clearly that Bref is getting traction and is used in production, at scale:
Since we passed 1 billion monthly invocations, I want to celebrate with you this fantastic milestone and thank you for being a part of Bref’s community.
Enough with the fun stuff, what’s new?
Lighter Lambda runtimes by moving some extensions to an extra layer instead of embedding them by default.
Migration to Amazon Linux 2 , which will be required by AWS Lambda at the end of the year.
Huge documentation improvements : a search bar, a reorganization, documentation of typed handlers , updates all over the place, and a better onboarding experience.
New vendor/bin/bref local command to run functions locally.
New projects will use API Gateway v2 because they are simpler, cheaper, and faster.
What did we break? Nothing major , the upgrade should be smooth. Here are the details:
You need to edit serverless.yml to switch to provided.al2 .
PHP 7.2 is no longer supported. PHP 7.3 still is.
GD, Imagick, Redis, MongoDB extensions are no longer installed by default; you need to include them via Bref extra extensions .
PHP is now compiled without ZTS (thread safety).
Removed the deprecated lambda() function.
Removed deprecated vendor/bin/bref commands:
vendor/bin/bref invoke is replaced by serverless invoke .
vendor/bin/bref deployment has become useless.
vendor/bin/bref bref.dev has become useless.
Sébastien Houzé has worked to make the Bref runtimes (AWS Lambda layers) lighter. One solution we went with was to remove built-in extensions that were not commonly used in most applications:
GD
Imagick
Redis
MongoDB
By removing them, we make your Lambda lighter, leaving more room for your code and improving cold start performances.
Of course, we don’t want to simply remove those extensions. That’s why they’ve been moved to separate layers in the Bref extra extensions repository, carefully maintained by Tobias Nyholm .
For example, to install imagick (via serverless.yml ):
functions : myapp : handler : public/index.php layers : - ${bref:layer.php-74-fpm} - ${bref:extra.imagick-php-74}
AWS introduced a new base Linux image for Lambda. We need to upgrade our applications to use it.
Thanks again to Sébastien Houzé , Bref 1.0 will work with Amazon Linux 2. Upgrading is as simple as changing this line in serverless.yml :
provider: name: aws - runtime: provided + runtime: provided.al2
Remember to upgrade to Bref 1.0 first!
“Documentation improvements” sounds boring, but I’m extremely happy with this for many reasons:
onboarding new users now makes much more sense,
current users can troubleshoot and improve their knowledge of Bref and serverless,
expert users can now dig in deeper, especially with “typed handlers”.
New users now start with the FPM runtime.
Don’t worry about FaaS and functions… Start by running PHP as usual on a cheap and scalable host. Then, once you’ve had your first success , you can look into the “Function runtime” and its power.
Check out the “First steps” guide and see how simple it is! .
A common source of errors and confusion was the two runtimes: “FPM” and “Function”.
To solve that, we clarified the wording and the structure of the documentation:
Bref for web apps lets you run Laravel, Symfony, etc. on Lambda like on any server, using PHP-FPM (aka the “FPM” runtime),
Bref for event-driven functions lets you handle native AWS Lambda events (aka the “Function” runtime).
Bref for web apps is the default runtime (see the “onboarding” section above), so if you’re not sure: go with this one.
Creating event-driven functions to handle Lambda events can be done using anonymous functions:
return function ($event) { return 'Hello ' . $event[ 'name' ]; };
But for months now, you can also create fully typed handler classes instead. This is now documented in the Typed PHP Lambda handlers page.
You can now write asynchronous workers to process SQS queues, process uploaded files via S3 events, create decoupled microservices using EventBridge, etc. Well, you already could, but now it will be a bit easier.
Self-promotion time: I’ve helped enterprises refactor their microservice architectures using Lambda and SQS/EventBridge. If you are interested, get in touch to work together . You can also check out Serverless Visually Explained , it contains examples for those use cases. < /self-promo>
Finally, the BREF_LOOP_MAX variable is now documented, for those ready to keep the PHP process alive between events to accelerate their workers.
The website has been slightly redesigned:
a top menu bar has been introduced, to easily navigate between the home, documentation, news and GitHub repository,
a search field has been introduced 🎉
Thanks to Algolia DocSearch for providing the search engine!
Bref provides Docker images to run web apps locally (e.g. Laravel or Symfony) and that works well.
However, when creating event-driven functions, running them locally via serverless and Docker was slow and unstable.
Bref 1.0 introduces a new command:
$ vendor/bin/bref local hello Hello world # With JSON event data $ vendor/bin/bref local hello '{"name": "Jane"}' Hello Jane
What’s awesome is that you decide if you want to use Docker or not (with the Bref images). You can skip Docker for best performances and ease of use, or use Docker to run in an environment that replicates production.
Read more in the documentation: Local development for functions .
API Gateway offers two versions:
v1’s REST API
v2’s HTTP API
Bref switches from REST API to HTTP API. Why:
HTTP API has lower latency (it’s slightly faster)
HTTP API is 70% cheaper
HTTP API is simpler to configure, both in the AWS console and serverless.yml
HTTP API do not have the /dev/ prefix in URLs!
The last point was a huge pain in the onboarding experience: links and redirects were broken in Symfony and Laravel. This will no longer be the case 💪
HTTP API offers mostly advantages, which is why Bref’s documentation and templates have changed to use the new version.
To update your existing projects, it’s only 2 lines to change in serverless.yml :
functions: website: # ... events: - - http: 'ANY /' - - http: 'ANY /{proxy+}' + - httpApi: '*'
However don’t do this blindly: this will delete your REST API to create a new HTTP API, which will break custom domains you may have set up. Instead, you can deploy the same Lambda with both v1 and v2, set up your domain on v2 , and then delete v1:
functions : website : # ... events : - http : 'ANY /' - http : 'ANY /{proxy+}' - httpApi : '*'
The deprecated lambda() function has been removed. If you were defining Lambda handlers with it, remove the call to the function. For example:
// Before return lambda ( function ( array $event) { return 'Hello ' . $event[ 'name' ]; } ) ; // After return function ( array $event) { return 'Hello ' . $event[ 'name' ]; };
The deprecated $_SERVER['LAMBDA_CONTEXT'] has been removed in favor of $_SERVER['LAMBDA_REQUEST_CONTEXT'] (same content).
A huge thanks to the 100 Bref contributors , to the community for supporting the project, and to those sponsoring the development:
Null
GeckoEngage
Laravel
JetBrains
Twilio
and many others . Thank you all!
Hope you enjoy it! And stay tuned for the AWS re:Invent conference next week!
You can also join the community in Slack , post details about your project in Built with Bref or share your experience online.
What is Bref and serverless? Get started with Bref
fix: Unpack HandlerFailedException by @tyx in https://github.com/brefphp/symfony-messenger/pull/73
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.5.3...0.5.4
adds missing comma for ci workflow by @smoench in https://github.com/brefphp/symfony-messenger/pull/71
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.5.2...0.5.3
Update doc for SF 5.1+ & add EventBridge config informations by @jdalmas in https://github.com/brefphp/symfony-messenger/pull/69
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.5.1...0.5.2
fix partial batch failure on fifo queue by @tyx in https://github.com/brefphp/symfony-messenger/pull/68
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.5.0...0.5.1
This release brings the support for Partial Batch Failure inside the Symfony Messenger bridge :tada:
This release brings the support for Partial Batch Failure inside the Symfony Messenger bridge :tada:
To enable it, there's two easy steps:
SqsConsumer service definitionBref\Symfony\Messenger\Service\Sqs\SqsConsumer:
public: true
autowire: true
arguments:
# Pass the transport name used in config/packages/messenger.yaml
$transportName: 'async'
+ $partialBatchFailure: true
ReportBatchItemFailures to the FunctionResponseTypes of your Lambda worker function. Lift does it for you automatically since v1.12.0 :sunglasses:Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.4.4...0.5.0
Update PHPStan and new fix errors by @t-richard in https://github.com/brefphp/symfony-messenger/pull/61
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.4.3...0.4.4
Allow Symfony 6.0 by @ddeboer in https://github.com/brefphp/symfony-messenger/pull/54
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.4.2...0.4.3
Rework SQS documentation to be clearer by @t-richard in https://github.com/brefphp/symfony-messenger/pull/50
Full Changelog: https://github.com/brefphp/symfony-messenger/compare/0.4.1...0.4.2
Fix Symfony 5.3 deprecation: Inject service client instead of container #48
Fix Symfony 5.3 deprecation: Inject service client instead of container #48
- #40 Support PHP 8.0 - #38 The internal SQS implementation had been replaced with Symfony's implementation (symfony/amazon-sqs-messenger) for easier
Read the 0.4 upgrade guide.
Use the SQS transport provided by Symfony Amazon SQS Messenger. See UPGRADE-0.4.md
#39 Support Bref 1.0.
#39 Support Bref 1.0.
Nothing published for this version
#32 Upgrade to stable versions of async-aws
#32 Upgrade to stable versions of async-aws
Fixed bug with serialised headers from SQS
Fixed bug with serialised headers from SQS
Simplified usage by autoregistering some services
Simplified usage by autoregistering some services
Upgrade to latest Bref version
Upgrade to latest Bref version
Bugfix, lazy services cannot be final
Bugfix, lazy services cannot be final
First release
First release
One column per quarter.