Sign in

Sandro Gehri

@sandro.gehri.dev
435 followers 239 following 48 posts

Father, Husband, Laravel enthusiast and OpenSource Developer. Creator of OpenAI for PHP and TailwindMerge for Laravel.

PostsRepliesMedia
Sandro Gehri @sandro.gehri.dev · 19/01/2026
Looking forward to talk about my experiences upgrading a real-world app to @laravel.com Livewire v4. Come along and hear: 👍 What went well? 🧐 Where I did struggle? 🚀 How the app improved? See you in #Basel
041
Sandro Gehri @sandro.gehri.dev · 01/09/2025
Upgrade to the latest @filamentphp.com release (v4.0.5) to get an extra boost on your test suite. In my case, the test suite went down from ~30s to ~24s 🚀
071
Reposted by Sandro Gehri
Laravel Live Denmark @laravellive.dk · 09/02/2025
Next speaker reveal! 🎉 @sandro.gehri.dev 🇨🇭, full-stack developer, open-source contributor, and creator of OpenAI for PHP & Laravel, will take the stage at Laravel Live Denmark!
183
Reposted by Sandro Gehri
Swiss Laravel Association @laravel.swiss · 08/02/2025
Hi Artisans ! We are pleased to invite you to our next Laravel Meetup, which will take place on Tuesday, February 25th, at 18:30 (talks start at 19:00) in Neuchâtel @ Le Hub RSVP : meetup.com/laravel-swit... #php #artisans #switzerland #KnightRider #livewire
meetup.com
Let’s build K.I.T.T. with JavaScript && Move from the Wild into the Cloud(s), Tue, Feb 25, 2025, 6:30 PM | Meetup
Get ready for an unforgettable Laravel meetup at HUB space in Neuchâtel ! Join us for an amazing evening of learning, dedicated to programming an onboard AI in JavaScript
152
Reposted by Sandro Gehri
Swiss Laravel Association @laravel.swiss · 08/12/2024
Hi Artisans! Here are some great moments recorded during our last meetup of the year in Zurich, November 2024. See you in January 2025 for new adventures! www.youtube.com/watch?v=oXD6...
youtube.com
Meetup in Zürich - November 2024
YouTube video by Laravel Switzerland Meetup
062
Sandro Gehri @sandro.gehri.dev · 07/12/2024
Probably most developers haven‘t realized the behaviour because HTML ignores leading and trailing spaces in most cases. The reason I realized it was a JS library not able to render strings with a leading whitespace. 😅
000
Sandro Gehri @sandro.gehri.dev · 06/12/2024
Livewire disables the TrimStrings middleware for all its requests: github.com/livewire/liv... Maybe something for Filament v4 to trim all text input values by default? Probably not possible in v3 as it is a breaking change under special conditions.
github.com
livewire/src/Mechanisms/HandleRequests/HandleRequests.php at main · livewire/livewire
A full-stack framework for Laravel that takes the pain out of building dynamic UIs. - livewire/livewire
110
Sandro Gehri @sandro.gehri.dev · 06/12/2024
Maybe this is a problem in my application. I will give it a try in a fresh installation and let you know.
010
Sandro Gehri @sandro.gehri.dev · 06/12/2024
Right, but I hesistated to have this right from the beginning on all my text inputs becauce of possible side effects. Maybe this is something Filament could support out of the box?
110
Sandro Gehri @sandro.gehri.dev · 06/12/2024
Maybe I should have mentioned, that I send log entries with a level of "error" of higher to Flare: 😅 flareapp.io/docs/integra...
flareapp.io
Sending logs to Flare - Documentation
The best error tracker for Laravel
020
Sandro Gehri @sandro.gehri.dev · 04/12/2024
Love this little tool by @theo.io to grow my network here 🦋 bsky-follow-finder.theo.io
bsky-follow-finder.theo.io
Bluesky Network Analyzer
Find accounts that you don't follow (yet) but are followed by lots of accounts that you do follow.
010
Sandro Gehri @sandro.gehri.dev · 04/12/2024
💡 Laravel tip: Get notified when you have a missing translation in your Laravel app. #Laravel #I18N
3335
Sandro Gehri @sandro.gehri.dev · 04/12/2024
I always unguard(). 💯 In my opinion fillables only work in really simple apps. As soon as you have users with different permissions, fillable isn‘t the right choice anymore. And to not get confused when switching projects I always unguard the models and use proper validation everywhere.
110
Sandro Gehri @sandro.gehri.dev · 04/12/2024
How are you getting rid of leading or trailing spaces on @filamentphp.com inputs? Currently, we use a macro on the TextInput which trims the string when the state dehydrates. Is there someone with a better / different approach?
120
Reposted by Sandro Gehri
PHP Community @phpc.social · 04/12/2024
For all the newcomers, I’ve created a starter pack of just a few of the awesome voices from the #PHP community to get you started here at Bluesky. Don’t stop with these folks, though. There are so many other amazing PHP devs to follow! Check out who these folks follow for more. go.bsky.app/SkXz8C8
44218
Sandro Gehri @sandro.gehri.dev · 03/12/2024
💯 totally agree 👍
030
Sandro Gehri @sandro.gehri.dev · 30/11/2024
Done.
000
Sandro Gehri @sandro.gehri.dev · 26/11/2024
The video of the talk will be available on Youtube.
120
Sandro Gehri @sandro.gehri.dev · 25/11/2024
🚨 Tomorrow: Laravel Worldwide Meetup Tune in when I talk about improving your test suite with mutation testing in @pestphp.bsky.social And @rissabubbles.bsky.social tells you everything about "Crafting Compelling Laracon Talks" 📆 26. November ⏰ 17:00 UTC meetup.laravel.com
meetup.laravel.com
Laravel Worldwide Meetup
Join the official Laravel meetup in the cloud. Learn from familiar faces and new speakers while chatting with fellow Laravel devs.
1248
Reposted by Sandro Gehri
PHP Community @phpc.social · 22/11/2024
We've assembled a starter pack of just a few of the awesome voices from the #PHP community here on Bluesky. But don't stop here! Take a look at who these folks follow for more great following ideas. go.bsky.app/SkXz8C8
69246
Sandro Gehri @sandro.gehri.dev · 22/11/2024
Looking forward to talk about mutation testing in @pestphp.bsky.social next Tuesday at the Laravel Worldwide Meetup. meetup.laravel.com
meetup.laravel.com
Laravel Worldwide Meetup
Join the official Laravel meetup in the cloud. Learn from familiar faces and new speakers while chatting with fellow Laravel devs.
091
Sandro Gehri @sandro.gehri.dev · 22/11/2024
And I was wondering why my follower count is 🚀 Thank you @phpc.social
040
Reposted by Sandro Gehri
Swiss Laravel Association @laravel.swiss · 19/11/2024
Catch all the talks from our amazing speakers on our YouTube channel! 🎥 Watch now: [youtube.com/@laravel-switzerland-meetup](www.youtube.com/@laravel-swi...).
053
Sandro Gehri @sandro.gehri.dev · 07/11/2024
Thanks to the @spatie.be newsletter href.email I just found out, that you can use a custom domain for your @bsky.app handle. I think @sandro.gehri.dev just looks very nice 💅
092
Sandro Gehri @sandro.gehri.dev · 02/09/2024
💡 Wan‘t to learn more about the upcoming mutation testing capabilities in @pestphp? Checkout my talk from the latest Laravel Switzerland meetup. youtu.be/78iI0yS87oA
youtu.be
Mutation Testing for Pest PHP with Sandro Gehri
YouTube video by Laravel Switzerland Meetup
010
Sandro Gehri @sandro.gehri.dev · 24/06/2024
🧙🏼 Still very pumped about my talk at Laravel Live UK last week, talking about the upcoming Mutation Testing capability in Pest PHP. Thanks again to the conference organizers, for doing an amazing job. Checkout the plugin beta version: github.com/pestphp/pest...
github.com
GitHub - pestphp/pest-plugin-mutate: Mutation Testing for Pest PHP
Mutation Testing for Pest PHP. Contribute to pestphp/pest-plugin-mutate development by creating an account on GitHub.
010
Sandro Gehri @sandro.gehri.dev · 10/01/2024
📣 TailwindMerge for Laravel Announcement The latest version supports all the new features in TailwindCSS 3.4 🎉 - Dynamic viewport units - size-* ... github.com/gehrisandro/...
010
Sandro Gehri @sandro.gehri.dev · 05/12/2023
The newest feature I've added to the upcoming Pest Mutation Testing plugin, is already one of my favourites: "--retry" 😍 It runs the mutations previously survived first, to have a really fast feedback loop. 🚀 It behaves like `--retry` in Pest. #php #mutationtesting
053
Reposted by Sandro Gehri
nunomaduro @nunomaduro.com · 04/12/2023
Considering releasing version v1.0.0 of OpenAI client for PHP. Is there any last request you wish to see implemented before that? github.com/openai-php/c...
041
Sandro Gehri @sandro.gehri.dev · 01/12/2023
A Larsvel Pulse card that records all OpenAI requests. 🧪 Should we add this to OpenAI for Laravel? And what metrics would you like to see?
010
Sandro Gehri @sandro.gehri.dev · 28/11/2023
💡 Pest PHP tip If a helper is only used in a single test file, you can define it as a callable within the beforeEach hook. This avoids the problem of conflicting helper method names between test files. 🍀
000
Reposted by Sandro Gehri
nunomaduro @nunomaduro.com · 27/11/2023
Pest usage in the PHP ecosystem has increased from 6% to 13%. That's more than 2 times the number of users from last year. 🫡
041
Sandro Gehri @sandro.gehri.dev · 23/11/2023
Just tagged a new stable version of OpenAI for PHP. ✅ Assistants API, Retrieval, and Code Interpreter ✅ Text to Speech ✅ GPT-4 Vision ✅ Dall·E 3 ✅ PHP 8.3 compatible github.com/openai-php/c...
091
Sandro Gehri @sandro.gehri.dev · 22/11/2023
Using the upcoming Pest "Mutation Testing" plugin on the OpenAI PHP client: ✅ Errors fixed: 4 ✅ Code improvements: 6 ✅ Tests fixed: 2 ✅ Tests enhanced: 18 ✅ Tests added: 16 This is going to change my way of creating software 🤩
031
Reposted by Sandro Gehri
nunomaduro @nunomaduro.com · 15/11/2023
Introducing @laravelphp Pulse by @jessarchercodes. Livestream in a few minutes, here: www.youtube.com/live/0byEYQz...
052
Sandro Gehri @sandro.gehri.dev · 15/11/2023
Depends on the model you are using: platform.openai.com/docs/guides/... But the preview models are quite restrected atm
000
Sandro Gehri @sandro.gehri.dev · 15/11/2023
💡 Learn how to use the new OpenAI Assistants API in Laravel I hope you like it 🎉 gehri.dev/blog/how-to-...
140
Sandro Gehri @sandro.gehri.dev · 14/11/2023
With more than 1.3 million downloads and 3.6K ⭐️⭐️⭐️, OpenAI for PHP is the most widely used OpenAI client in PHP. Happy that so many are using it. This is an incredible motivation for me to push forward 😍 github.com/openai-php/c...
051
Sandro Gehri @sandro.gehri.dev · 13/11/2023
Make sure you are using the latest beta release (v0.8.0-beta.1). We are going to make a regular release in a couple of days. Feedback is highly appreciated 🤩 github.com/openai-php/c...
github.com
Release v0.8.0-beta.1 · openai-php/client
What's New Add support for Assistants and Threads endpoint by @gehrisandro in #243 The docs can be found in the 0.8.x branch README.md: https://github.com/openai-php/client/tree/0.8.x#table-of-co...
100
Sandro Gehri @sandro.gehri.dev · 13/11/2023
📣 OpenAI PHP Client update 📣 Assistants API support has arrived! Creating AI assistants in your PHP / Laravel App has never been easier 🤯 Link and details 👇
110
Sandro Gehri @sandro.gehri.dev · 09/11/2023
Heads up, PHP & Laravel wizards! 🧙 Support for "Assistants" is coming soon to OpenAI for PHP and Laravel . Keep your eyes peeled – magic is about to happen! ✨
120
Sandro Gehri @sandro.gehri.dev · 07/11/2023
I think this should already work, but I had no time yet to test. But looking forward to your feedback 😃
110
Sandro Gehri @sandro.gehri.dev · 07/11/2023
It is only a „composer update“ away 😉
100
Sandro Gehri @sandro.gehri.dev · 07/11/2023
☀️ New day, new feature Our OpenAI Clients for PHP and Laravel now supports "Tools" on the chat endpoint, which was released yesterday by OpenAI. github.com/openai-php/c...
052
Sandro Gehri @sandro.gehri.dev · 06/11/2023
github.com/openai-php/c...
000
Sandro Gehri @sandro.gehri.dev · 06/11/2023
Want to try the brand new OpenAI "Text to Speech" feature? Our client for PHP and Laravel has you covered 🚀 Link to the client below 👇
2123
Sandro Gehri @sandro.gehri.dev · 06/11/2023
Just released a new version of the OpenAI PHP client that adheres to the latest API changes at the Models endpoint. Make sure you update to the latest version: v0.7.5 github.com/openai-php/c...
github.com
GitHub - openai-php/client: ⚡️ OpenAI PHP is a supercharged community-maintained PHP API client ...
⚡️ OpenAI PHP is a supercharged community-maintained PHP API client that allows you to interact with OpenAI API. - GitHub - openai-php/client: ⚡️ OpenAI PHP is a supercharged community-maintai...
022
Reposted by Sandro Gehri
nunomaduro @nunomaduro.com · 02/11/2023
At Laracon AU, I will unveil two new plugins that hardcore test fans will fall in love with. Mutate: a new plugin, by @gehrisandro.bsky.social, focused on mutation testing. Stressless: something fresh, new, and never seen in the PHP landscape. 🌶️
031
Sandro Gehri @sandro.gehri.dev · 02/11/2023
🐣 Tackling the chicken-and-egg challenge while using the PEST PHP mutation testing plugin during its own development. 🤣🤣🤣
021
Sandro Gehri @sandro.gehri.dev · 01/11/2023
Working on a mutation testing plugin for Pest PHP with some handy mutators for #Laravel applications 🤩
030