Matthieu Napoli's Avatar

Matthieu Napoli

@mnapoli.bsky.social

Building ▸ bref.sh ▸ https://bref.sh/cloud ▸ https://github.com/getlift ▸ https://port7777.com AWS serverless hero

1,649 Followers  |  179 Following  |  216 Posts  |  Joined: 23.04.2023  |  1.8215

Latest posts by mnapoli.bsky.social on Bluesky

Playing with an idea for PHP: auto-escaping untrusted strings in SQL queries.

What do we think about this idea? 👇
github.com/mnapoli/aut...

20.10.2025 12:00 — 👍 0    🔁 0    💬 3    📌 0
Preview
Bref – Simple and scalable PHP with serverless Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

Crossed 2000 pull requests in bref.sh 💪

16.09.2025 12:02 — 👍 4    🔁 1    💬 0    📌 0

Nah apparently they have a policy it’s complicated to get through

15.09.2025 20:56 — 👍 0    🔁 0    💬 0    📌 0

That moment when you learn that one of the most well known and respected company on the internet uses Bref… but that they don't allow sharing the name 🥹

15.09.2025 16:00 — 👍 11    🔁 0    💬 2    📌 0
Post image

SWIFT bank transfer blocked: "Please provide complete name"

"Null" *is* my company name…

Happened before to receive payments, now it's for paying others 😂
Also banks communicate via these printed protocols wtf

15.09.2025 12:03 — 👍 7    🔁 1    💬 1    📌 0
Video thumbnail

New: run Laravel Tinker in AWS Lambda 🎉

Documentation: bref.sh/docs/larave...

12.09.2025 11:57 — 👍 6    🔁 0    💬 0    📌 0

It depends on the application of course, the one I used here for my tests it went from 1.3s to 750ms IIRC

09.09.2025 16:06 — 👍 1    🔁 0    💬 1    📌 0
Optimizing Laravel cold starts on AWS Lambda This article is based on my notes after experimenting with caching as much as possible before deploying a Laravel application to AWS Lambda using Bref. The goal was to optimize AWS Lambda cold starts, without slowing down warm invocations.

New post: Optimizing Laravel cold starts on AWS Lambda

I looked into pre-compiling opcache before deploying

mnapoli.fr/optimizing-...

09.09.2025 13:58 — 👍 4    🔁 0    💬 1    📌 0
Post image

Small improvements to the X-Ray bridge: there's a changelog (
bref.sh/xray/changelog), and Laravel's HTTP client is now automatically traced 💪

08.09.2025 19:13 — 👍 3    🔁 0    💬 0    📌 0
PHP serverless: how it actually works by Matthieu Napoli
We are happy to share this inspiring talk from The Dutch PHP Conference 2025! PHP serverless: how it actually works by Matthieu Napoli

So cool, my talk at DutchPHP is finally up!

This one was special for me for 2 reasons: I launched Bref Cloud during the talk, and a bit of a personal story at the end (with the floppy disks) ❤️

www.youtube.com/watch?v=yGL...

01.09.2025 15:00 — 👍 6    🔁 3    💬 0    📌 0
Video thumbnail

Going Serverless doesn't mean starting over.

In a recent Compiled Conversations episode, @mnapoli.bsky.social shares how apps can go serverless without large rewrites - using it simply as hosting, without going all-in on cloud native.

🎧 compiledconversations.com/3/

#Serverless #PHP

23.08.2025 14:14 — 👍 1    🔁 1    💬 0    📌 0

I've been deep into Bref v3 refactors, migrations, improvements… Feels so good when benchmarks show cold starts keep getting shorter 😌

25.08.2025 11:39 — 👍 4    🔁 0    💬 0    📌 0

I wanted easter eggs even for myself, I got that!

22.08.2025 16:40 — 👍 0    🔁 0    💬 0    📌 0

Ohhh i see! I asked Claude to add more commands after the initial ones and I didn’t play with this one 😂

22.08.2025 16:39 — 👍 1    🔁 0    💬 2    📌 0

I was serious 😅 I just looked it up, not sure what it’s used for but I went for the dos-based computers or mainframe aesthetics

22.08.2025 07:39 — 👍 0    🔁 0    💬 1    📌 0

What is neofetch?

21.08.2025 18:20 — 👍 0    🔁 0    💬 1    📌 0
Preview
Switch to Amazon Linux 2023 for Bref v3 by mnapoli · Pull Request #122 · brefphp/aws-lambda-layers Bref needs to support AL2023, this PR will be included in Bref v3. It removes a lot of custom system libraries we compile because AL2023 contains more recent versions: https://docs.aws.amazon.com/l...

That moment when you finally merge a 2 year old pull request 👨‍🍳
github.com/brefphp/aws...

21.08.2025 15:00 — 👍 2    🔁 0    💬 0    📌 0
Post image

I am sure glad that GitHub has a generous free tier for open-source, and that depot.dev is graciously sponsoring Bref builds… and making them 10 times faster 💙💙

21.08.2025 10:00 — 👍 1    🔁 0    💬 0    📌 0
Preview
favicon.show - Universal Favicon URL Get any website's favicon with a simple URL. Fast, reliable, with smart fallbacks.

> "if you're not embarrassed by the first version you've launched too late"

Me: one last easter egg, I promise last one
favicon.show/

19.08.2025 15:00 — 👍 3    🔁 0    💬 1    📌 0
Preview
AWS credentials on AWS Lambda – Bref Access other AWS services from AWS Lambda by using the built-in AWS credentials.

A common mistake with migrations to Bref is setting AWS access keys in env variables.

That's not needed: AWS Lambda automatically provides access keys. It's more secure as these creds are granular, temporary, and rotated.

Documented that in a new page:
bref.sh/docs/enviro...

19.08.2025 10:00 — 👍 1    🔁 0    💬 0    📌 0
Video thumbnail

The screenshot on
bref.sh/cloud now turns into a video when clicked

Here's the video, feedback is welcome!

18.08.2025 15:00 — 👍 1    🔁 0    💬 0    📌 0

The thing I'm most proud of with this project is that I bought the domain AFTER building the thing 🏅

18.08.2025 10:19 — 👍 6    🔁 0    💬 0    📌 0

Please don’t hack my server 😬

17.08.2025 17:38 — 👍 2    🔁 0    💬 0    📌 0
Preview
favicon.show - Universal Favicon URL Get any website's favicon with a simple URL. Fast, reliable, with smart fallbacks.

Week-end project: get the favicon of any website

runs on Cloudflare workers, code is open-source on GitHub. Loads of easter eggs on the website too :p

favicon.show/

17.08.2025 17:35 — 👍 12    🔁 1    💬 1    📌 1
Preview
Release 7.1.0 · PHP-DI/PHP-DI What's Changed Add support for native PHP 8.4+ lazy proxies. by @BusterNeece in #917 When running on PHP 8.4 or later, lazy loaded services will now automatically use native PHP lazy objects. Tha...

Published PHP-DI 7.1 which adds support for native PHP proxies for lazy-loaded services
github.com/PHP-DI/PHP-D...

15.08.2025 15:24 — 👍 3    🔁 0    💬 0    📌 0

No idea I’m on max plan

08.08.2025 20:56 — 👍 0    🔁 0    💬 0    📌 0

Tried GPT5 instead of Claude Code (via Conductor by @charliebholtz), it takes forever.
Last attempt at a simple task (add a model to Laravel Nova):
- GPT5 took 17 min (~$1) and didn't finish (rate limit error)
- Claude took 3 min, made one small mistake (fixed), and it's working

08.08.2025 15:53 — 👍 5    🔁 0    💬 2    📌 0

Tailwind defaults 🙈

07.08.2025 18:20 — 👍 2    🔁 0    💬 0    📌 0

Oh nice!

07.08.2025 12:47 — 👍 0    🔁 0    💬 0    📌 0

Got it, and having always an extra class (action + job instead of just job) isn’t annoying to deal with?

07.08.2025 11:20 — 👍 0    🔁 0    💬 1    📌 0

@mnapoli is following 20 prominent accounts