←
Bref319 posts
Bref avatar

Bref

@brefphp

The serverless PHP framework ➯ bref.sh

◷ Joined December 2020▧ 10 Photos and videos
Bref avatar
Bref@brefphp·24 Oct 2021

Bref is 4 years old today! ▸ 118 contributors ▸ 118 releases ▸ 300 community members in Slack ▸ 3k downloads/day ▸ 1 billion requests processed each week PHP + AWS Lambda = ❤️

Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Nov 17

Bref Cloud now shows your AWS costs: - 12 months of history - per application, environment, database and network - grouped by AWS account, region or AWS service - the biggest increase of the month - costs outside Bref Cloud, by region (hello forgotten instance)

Post attachment
Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Nov 9

WebSockets now work with Laravel on AWS Lambda with @brefphp: - Laravel Broadcasting and Echo work as usual - no Reverb server to run, completely serverless - public or private channels, presence, whispers, Inertia live props… bref.sh/docs/laravel/websock…

Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Oct 21

Bref runtimes and container images with the patched PHP are out. (31 minutes after php released 💪) github.com/brefphp/aws-lambd… to update: - composer update bref/bref && redeploy - Docker: pull bref/php-xx-fpm again PHP-FPM is the affected runtime, Octane / function runtime are not in the attack paths. Update everything anyway. CVE details: php.net/archive/2026.php#202…

Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Oct 21

PHP ships a critical security release today at 14:00 UTC (PHP 8.2+ only) what it means for Bref: - we'll update PHP (Lambda layers + Docker images) after new versions are out - then: `composer update bref/bref` and redeploy - *seems like* only the PHP-FPM runtime is impacted, not Octane or CLI/jobs. TBC I'll update here, join slack for live updates: bref.sh/slack

Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Oct 12

Hello Aurora DSQL 🤩 - PostgreSQL compatible, creates in <1min - no instances, scales to zero, no cold start - billed per request, starts at $0 - redundant & multi-AZ OOTB - no VPC/NAT Create DSQL databases in Bref Cloud and use in Laravel with `bref/laravel-dsql` Great for new apps. For existing apps it might be harder, read the differences -> bref.sh/docs/environment/dat…

I think I finally found a truly serverless database ✨

Post attachment
Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Oct 2

You can now view and search logs from the terminal: bref logs --env=prod --search="payment failed" bref.sh/docs/environment/log… It's built to be friendly for humans (pretty-print stack traces, filters noise) _and_ AI agents too (low tokens, multiple filters…)

Post attachment
Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Sep 30

On Bref Cloud, opening a trace now also shows the logs for that invocation. Timeline above, logs below. Warnings, errors, and stack traces without jumping to CloudWatch or a separate log viewer.

Post attachment
Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Sep 2

You can now create serverless databases in Bref Cloud. Aurora Serverless v2, MySQL or PostgreSQL. They scale up instantly, scale down on their own, and can pause when idle. Auto-pause is the cheapest option for rarely used environments. If the app is always active and doesn’t need scaling, a small regular DB is still cheaper (around $12/mo vs $43/mo for always-on serverless). Wake-up is usually about 12 seconds.

Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Aug 20

I haven't sent a "Bref newsletter" in years 😬 Finally getting back into it, expect it every month. And it will be hand edited. AI is really helpful for gathering content but I hate reading AI, so I'll be very careful with that. bref.mailcoach.app/webview/c…

Matthieu Napoli avatar
⟳ Bref retweeted
Matthieu Napoli@matthieunapoli·Aug 19

Laravel 13 added fonts-manifest.json (and font CSS that PHP reads). I updated the default serverless.yml stub for new Bref apps. Existing apps don't get that automatically. If fonts break after upgrading, add these under package.patterns: - 'public/build/fonts-manifest.json' - 'public/build/assets/fonts-*.css'