Symfony : Strategy Pattern explained... thanks to Autowire Iterator!
https://youtu.be/9hUIl-dpoFs
https://redd.it/1nihene
@r_php
https://youtu.be/9hUIl-dpoFs
https://redd.it/1nihene
@r_php
YouTube
Symfony : Pattern Strategy expliqué… grâce à l’Autowire Iterator !
Dans cette vidéo, nous explorons l’implémentation du pattern Strategy dans un projet Symfony moderne.
Ce tutoriel s’adresse aux développeurs qui souhaitent améliorer la flexibilité et la maintenabilité de leurs applications Symfony à travers les bonnes pratiques…
Ce tutoriel s’adresse aux développeurs qui souhaitent améliorer la flexibilité et la maintenabilité de leurs applications Symfony à travers les bonnes pratiques…
SymfonyCon Amsterdam 2025: The Double-Edged Sword of Code Quality Tools
https://symfony.com/blog/symfonycon-amsterdam-2025-the-double-edged-sword-of-code-quality-tools?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1nimwhx
@r_php
https://symfony.com/blog/symfonycon-amsterdam-2025-the-double-edged-sword-of-code-quality-tools?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1nimwhx
@r_php
Symfony
SymfonyCon Amsterdam 2025: The Double-Edged Sword of Code Quality Tools (Symfony Blog)
🧩 Are we the sharpest (quality) tool in the shed? Join Konrad Oboza to explore how relying too much on code quality tools can backfire—and how to strike the right balance for truly effective deve…
whereBetween vs. whereValueBetween vs. whereBetweenColumns ?
https://nabilhassen.com/laravel-wherebetween-vs-wherevaluebetween-vs-wherebetweencolumns
https://redd.it/1nin7nb
@r_php
https://nabilhassen.com/laravel-wherebetween-vs-wherevaluebetween-vs-wherebetweencolumns
https://redd.it/1nin7nb
@r_php
Nabilhassen
Laravel: whereBetween vs whereValueBetween vs whereBetweenColumns
Confused about Laravel’s whereBetween, whereBetweenColumns, and whereValueBetween? Discover their hidden differences with real SQL examples!
PHP Fundamentals [Full Course]
https://youtu.be/EX3qQqdm16I?feature=shared
https://redd.it/1niq0sy
@r_php
https://youtu.be/EX3qQqdm16I?feature=shared
https://redd.it/1niq0sy
@r_php
YouTube
PHP Fundamentals [FULL COURSE]
Learn the essentials of modern PHP in this beginner-friendly course. Whether you're new to PHP or coming from another language, this course provides a solid foundation for PHP development and prepares you for working with Laravel. In 10 concise lessons, we'll…
The NativePHP Mobile Kitchen Sink app is now open source (MIT)
https://nativephp.com/blog/kitchen-sink-unlocked
https://redd.it/1nithda
@r_php
https://nativephp.com/blog/kitchen-sink-unlocked
https://redd.it/1nithda
@r_php
Reddit
From the PHP community on Reddit: The NativePHP Mobile Kitchen Sink app is now open source (MIT)
Posted by simonhamp - 0 votes and 0 comments
Longhorn PHP full schedule
Hey y'all - just wanted to share that the full schedule is now online for this year's Longhorn PHP:
https://longhornphp.com/
The conference is October 23-25 in Austin, TX. We have virtual ($75) and in-person ($250-$350) ticket options.
https://redd.it/1niuz2k
@r_php
Hey y'all - just wanted to share that the full schedule is now online for this year's Longhorn PHP:
https://longhornphp.com/
The conference is October 23-25 in Austin, TX. We have virtual ($75) and in-person ($250-$350) ticket options.
https://redd.it/1niuz2k
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
The NativePHP Mobile Kitchen Sink app is now open source (MIT)
https://nativephp.com/blog/kitchen-sink-unlocked
https://redd.it/1nitgx1
@r_php
https://nativephp.com/blog/kitchen-sink-unlocked
https://redd.it/1nitgx1
@r_php
Reddit
From the laravel community on Reddit: The NativePHP Mobile Kitchen Sink app is now open source (MIT)
Posted by simonhamp - 7 votes and 0 comments
SQL performance improvements: finding the right queries to fix (part 1)
https://ohdear.app/news-and-updates/sql-performance-improvements-finding-the-right-queries-to-fix-part-1
https://redd.it/1nisyf5
@r_php
https://ohdear.app/news-and-updates/sql-performance-improvements-finding-the-right-queries-to-fix-part-1
https://redd.it/1nisyf5
@r_php
ohdear.app
SQL performance improvements: finding the right queries to fix (part 1)
This post covers tips and tricks for performance tweaking your SQL queries by first identifying which queries need work.
SymfonyCon Amsterdam 2025: Testing with(out) dependencies
https://symfony.com/blog/symfonycon-amsterdam-2025-testing-with-out-dependencies?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1njfb9u
@r_php
https://symfony.com/blog/symfonycon-amsterdam-2025-testing-with-out-dependencies?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1njfb9u
@r_php
Symfony
SymfonyCon Amsterdam 2025: Testing with(out) dependencies (Symfony Blog)
🧪 Master the art of stubs and mocks. Join Sebastian to demystify test doubles in PHPUnit and learn when to fake dependencies—or trust the real ones—for cleaner, more reliable tests.
Existing Laravel app now needs an API
Hey all
I build a Laravel app with Inertia for a client a couple of years back and it's still working perfectly. My client now wants a mobile app as part of the solution which will need to access the data.
So...add an API with JWT to the existing project and make use of services to share code, or create a separate API project accessing the same database or something else?
I'm sure others have faced this issue so interested to hear what swayed the decision.
Cheers.
https://redd.it/1njgct3
@r_php
Hey all
I build a Laravel app with Inertia for a client a couple of years back and it's still working perfectly. My client now wants a mobile app as part of the solution which will need to access the data.
So...add an API with JWT to the existing project and make use of services to share code, or create a separate API project accessing the same database or something else?
I'm sure others have faced this issue so interested to hear what swayed the decision.
Cheers.
https://redd.it/1njgct3
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Laravel 12.29: Introducing Session Cache
https://nabilhassen.com/session-cache-in-laravel-1229
https://redd.it/1njiz8h
@r_php
https://nabilhassen.com/session-cache-in-laravel-1229
https://redd.it/1njiz8h
@r_php
Nabilhassen
Session Cache in Laravel 12.29
Laravel 12.29 introduces Session Cache, letting you store user-specific data per session using familiar cache methods, cleared when the session ends.
My own super strict laravel starter kit
https://github.com/nunomaduro/laravel-starter-kit
https://redd.it/1njn93c
@r_php
https://github.com/nunomaduro/laravel-starter-kit
https://redd.it/1njn93c
@r_php
GitHub
GitHub - nunomaduro/laravel-starter-kit: Laravel Starter Kit is an ultra-strict, type-safe Laravel skeleton engineered for developers…
Laravel Starter Kit is an ultra-strict, type-safe Laravel skeleton engineered for developers who refuse to compromise on code quality. - nunomaduro/laravel-starter-kit
Laravel MultiTenant, MultiDatabase (JOBS)
Bom, estou desenvolvendo um cardápio online totalmente em Laravel. A aplicação já estava praticamente pronta, mas tive a ideia de transformá-la em multi-tenant. Grande parte já está funcionando, porém me deparei com um problema.
Tenho um banco principal, que vou chamar de "Principal", e os bancos dos tenants: "Tenant1", "Tenant2", e assim por diante. Estou utilizando filas do Laravel porque também uso WebSocket (Laravel Reverb), além da integração com WhatsApp via Twilio.
Centralizei todos os jobs na tabela do banco Principal, ou seja, todos os jobs de todos os tenants são enfileirados lá. Como a aplicação é um cardápio, ela não precisa ser 100% em tempo real, então esse modelo faz sentido.
O problema é que, quando envio um job para disparar mensagens no WhatsApp, a aplicação não consegue se conectar ao banco do tenant. Esse job chama um service responsável pelo envio.
Alguém aqui já trabalhou com filas em sistema multi-tenant no Laravel e poderia me dar uma luz?
https://redd.it/1njp5nf
@r_php
Bom, estou desenvolvendo um cardápio online totalmente em Laravel. A aplicação já estava praticamente pronta, mas tive a ideia de transformá-la em multi-tenant. Grande parte já está funcionando, porém me deparei com um problema.
Tenho um banco principal, que vou chamar de "Principal", e os bancos dos tenants: "Tenant1", "Tenant2", e assim por diante. Estou utilizando filas do Laravel porque também uso WebSocket (Laravel Reverb), além da integração com WhatsApp via Twilio.
Centralizei todos os jobs na tabela do banco Principal, ou seja, todos os jobs de todos os tenants são enfileirados lá. Como a aplicação é um cardápio, ela não precisa ser 100% em tempo real, então esse modelo faz sentido.
O problema é que, quando envio um job para disparar mensagens no WhatsApp, a aplicação não consegue se conectar ao banco do tenant. Esse job chama um service responsável pelo envio.
Alguém aqui já trabalhou com filas em sistema multi-tenant no Laravel e poderia me dar uma luz?
https://redd.it/1njp5nf
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Laravel 12.29: Disable all global scopes except chosen ones
https://nabilhassen.com/laravel-1229-disable-all-global-scopes-except-chosen
https://redd.it/1nk1mze
@r_php
https://nabilhassen.com/laravel-1229-disable-all-global-scopes-except-chosen
https://redd.it/1nk1mze
@r_php
Nabilhassen
Laravel 12.29: Disable all global scopes except chosen
Laravel 12.29 adds withoutGlobalScopesExcept() to Eloquent, letting you disable all global scopes except the ones you want to keep.
Any plans for proper PHP gRPC server support in 2025?
My organisation is looking at gRPC for internal service communications in place of our existing REST/GraphQL calls. But what’s holding us back from moving towards this direction is we have several PHP mature services that we actively maintain.
Given we have the PHP foundation established, gRPC is a feature I feel that is missing in today’s modern PHP toolkit that isn’t discussed about often, especially with it gaining popularity over the years. There’s full support running gRPC servers in other languages but not PHP.
Is this something that is on the radars of the PHP foundation? Or is the only way is to adopt 3rd party/community developed solutions which seems more like a workaround?
I’m talking about 3rd party plugins like https://github.com/khepin/php-grpc-server-notes which needs to run on RoadRunner, which aren’t actively maintained.
https://redd.it/1nk3paj
@r_php
My organisation is looking at gRPC for internal service communications in place of our existing REST/GraphQL calls. But what’s holding us back from moving towards this direction is we have several PHP mature services that we actively maintain.
Given we have the PHP foundation established, gRPC is a feature I feel that is missing in today’s modern PHP toolkit that isn’t discussed about often, especially with it gaining popularity over the years. There’s full support running gRPC servers in other languages but not PHP.
Is this something that is on the radars of the PHP foundation? Or is the only way is to adopt 3rd party/community developed solutions which seems more like a workaround?
I’m talking about 3rd party plugins like https://github.com/khepin/php-grpc-server-notes which needs to run on RoadRunner, which aren’t actively maintained.
https://redd.it/1nk3paj
@r_php
GitHub
GitHub - khepin/php-grpc-server-notes
Contribute to khepin/php-grpc-server-notes development by creating an account on GitHub.
PDFAI - A simple library for extracting data from PDFs for large language models
Hi /r/PHP,
I just published a new, simple, low dependency PHP library for extracting text and rasterizing PDF pages using the Poppler command line tools.
You can find out about it here:
https://github.com/1tomany/pdf-ai
It's perfect if you're building any type of RAG system, or just need a way to rasterize PDF pages to display as thumbnails. The extractors take advantage of generators so extracting multiple pages should be performant and light on memory.
I also released a Symfony bundle that uses a pattern I'm calling Action-Request-Response (I'm sure it has an actual name - please let me know if so). Instead of accessing the client directly, you create a request that is sent to a client which processes the request and sends back a response. This makes testing much easier because you can swap out the actual client implementation with a mock implementation without changing any of your business logic.
You can see it in action here:
https://github.com/1tomany/pdf-ai-bundle
This pattern can be used with the standalone library, you'll just be responsible for creating a container of extractors, injecting them into the factory, and using the factory to create the extractor.
Would love your feedback!
https://redd.it/1nk54tj
@r_php
Hi /r/PHP,
I just published a new, simple, low dependency PHP library for extracting text and rasterizing PDF pages using the Poppler command line tools.
You can find out about it here:
https://github.com/1tomany/pdf-ai
It's perfect if you're building any type of RAG system, or just need a way to rasterize PDF pages to display as thumbnails. The extractors take advantage of generators so extracting multiple pages should be performant and light on memory.
I also released a Symfony bundle that uses a pattern I'm calling Action-Request-Response (I'm sure it has an actual name - please let me know if so). Instead of accessing the client directly, you create a request that is sent to a client which processes the request and sends back a response. This makes testing much easier because you can swap out the actual client implementation with a mock implementation without changing any of your business logic.
You can see it in action here:
https://github.com/1tomany/pdf-ai-bundle
This pattern can be used with the standalone library, you'll just be responsible for creating a container of extractors, injecting them into the factory, and using the factory to create the extractor.
Would love your feedback!
https://redd.it/1nk54tj
@r_php
GitHub
GitHub - 1tomany/pdf-ai: A simple PHP library that makes extracting data from PDFs for large language models easy
A simple PHP library that makes extracting data from PDFs for large language models easy - 1tomany/pdf-ai
We wanted to upgrade our Laravel 5.8 project to the latest version but first we needed strongly typed data classes with support for validating properties using Laravel's validation rules, as well as creating nested structures so I wrote this class and published in case it might be useful to someone.
This is meant to be used before you upgrade Laravel to a high enough version. After you do, you can start using `spatie/laravel-data` and remove this.
https://github.com/gigabites19/old-laravel-typed
https://redd.it/1nk9729
@r_php
This is meant to be used before you upgrade Laravel to a high enough version. After you do, you can start using `spatie/laravel-data` and remove this.
https://github.com/gigabites19/old-laravel-typed
https://redd.it/1nk9729
@r_php
GitHub
GitHub - gigabites19/old-laravel-typed: Something akin to `spatie/laravel-data` for old laravel versions
Something akin to `spatie/laravel-data` for old laravel versions - gigabites19/old-laravel-typed
PHP Fundamentals [Full Course]
https://youtu.be/EX3qQqdm16I?feature=shared
https://redd.it/1nkaxhr
@r_php
https://youtu.be/EX3qQqdm16I?feature=shared
https://redd.it/1nkaxhr
@r_php
YouTube
PHP Fundamentals [FULL COURSE]
Learn the essentials of modern PHP in this beginner-friendly course. Whether you're new to PHP or coming from another language, this course provides a solid foundation for PHP development and prepares you for working with Laravel. In 10 concise lessons, we'll…
GitHub - dunglas/frankenphp-grpc: A PHP extension to write gRPC servers using the official gRPC library written in Go
https://github.com/dunglas/frankenphp-grpc
https://redd.it/1nkbzlm
@r_php
https://github.com/dunglas/frankenphp-grpc
https://redd.it/1nkbzlm
@r_php
GitHub
GitHub - dunglas/frankenphp-grpc: A PHP extension to write gRPC servers using the official gRPC library written in Go
A PHP extension to write gRPC servers using the official gRPC library written in Go - GitHub - dunglas/frankenphp-grpc: A PHP extension to write gRPC servers using the official gRPC library writt...
Looking for TWIG PHP developer
I'm looking for TWIG PHP developer to help fix existing website issues between frontend and and admin backend if anyone could or take the gig
https://redd.it/1nkh6yv
@r_php
I'm looking for TWIG PHP developer to help fix existing website issues between frontend and and admin backend if anyone could or take the gig
https://redd.it/1nkh6yv
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community