Refactoring Legacy: Part 1 - DTO's & Value Objects
https://clegginabox.co.uk/refactoring-legacy-part-1-dtos-value-objects/
https://redd.it/1oy0anv
@r_php
https://clegginabox.co.uk/refactoring-legacy-part-1-dtos-value-objects/
https://redd.it/1oy0anv
@r_php
Clegginabox
Refactoring Legacy: Part 1 - DTO's & Value Objects
Ever opened a codebase where a single JSON payload could arrive in 17 different shapes depending on the phase of the moon?
Over the last few years my contracts have involved working with legacy code in one way or another. Outdated software, missing documentation…
Over the last few years my contracts have involved working with legacy code in one way or another. Outdated software, missing documentation…
Run only affected tests?
Hey,
I want to run only affected tests - to cut down a bit on CI wastage and improve pipeline time.
Other tools I've worked with have this (e.g. NX) - I've gone through the docs and can't find anything on this.
Have I missed something and is there a command for it? Or have people brewed their own solutions/packages for this?
Thanks!
https://redd.it/1oybjpo
@r_php
Hey,
I want to run only affected tests - to cut down a bit on CI wastage and improve pipeline time.
Other tools I've worked with have this (e.g. NX) - I've gone through the docs and can't find anything on this.
Have I missed something and is there a command for it? Or have people brewed their own solutions/packages for this?
Thanks!
https://redd.it/1oybjpo
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Static Methods Vs. Lazy Objects | PHP
Why should I use the lazy objects instead of static methods? I don't understand the difference use case of them.
https://redd.it/1oyfzzc
@r_php
Why should I use the lazy objects instead of static methods? I don't understand the difference use case of them.
https://redd.it/1oyfzzc
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
A Week of Symfony #985 (November 10–16, 2025)
https://symfony.com/blog/a-week-of-symfony-985-november-10-16-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1oyhteq
@r_php
https://symfony.com/blog/a-week-of-symfony-985-november-10-16-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1oyhteq
@r_php
Symfony
A Week of Symfony #985 (November 10–16, 2025) (Symfony Blog)
This week, Symfony released maintenance versions 5.4.50, 6.4.29, and 7.3.7 to address a potential security vulnerability. Meanwhile, we continued polishing the upcoming Symfony 7.4 and 8.0 releases an…
Should I opensource my DI container?
I've been using a custom dependency injection container in a couple of my php websites recently it's ~35 lines and still has all the features I need. It's explicit (so no autowiring) and has an emphasis on developer experience despite being so small, it has helper methods for factories, singletons, and lazy singletons. I've found it ideal for no/micro framework projects, cli noscripts, and possibly for use in laravel packages. What do you think? Is this something worth sharing?
https://redd.it/1oyj0u1
@r_php
I've been using a custom dependency injection container in a couple of my php websites recently it's ~35 lines and still has all the features I need. It's explicit (so no autowiring) and has an emphasis on developer experience despite being so small, it has helper methods for factories, singletons, and lazy singletons. I've found it ideal for no/micro framework projects, cli noscripts, and possibly for use in laravel packages. What do you think? Is this something worth sharing?
https://redd.it/1oyj0u1
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
Weekly /r/Laravel Help Thread
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1oysfch
@r_php
Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:
What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.
For more immediate support, you can ask in the official Laravel Discord.
Thanks and welcome to the r/Laravel community!
https://redd.it/1oysfch
@r_php
Laravel
Installation - Laravel 12.x - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
EHTML — Extended HTML for Real Apps. Sharing it in case it helps someone.
Hi everyone! I’ve been working on a project called EHTML, an HTML-first approach to building dynamic pages using mostly HTML. It lets you handle things like templating, loops, conditions, data loading, reusable components, and nested forms — all without a build step or heavy JavaScript setup.
I originally built it to simplify my own workflow for small apps and prototypes, but I figured others who prefer lightweight or no-build approaches might find it useful too. It runs entirely in the browser using native ES modules and custom elements, so there’s no bundler or complex tooling involved.
If you enjoy working close to the browser or like experimenting with minimalistic web development, you might find it interesting. Just sharing in case it helps someone or sparks ideas. Cheers!
Link: https://e-html.org/
https://redd.it/1oyv9xw
@r_php
Hi everyone! I’ve been working on a project called EHTML, an HTML-first approach to building dynamic pages using mostly HTML. It lets you handle things like templating, loops, conditions, data loading, reusable components, and nested forms — all without a build step or heavy JavaScript setup.
I originally built it to simplify my own workflow for small apps and prototypes, but I figured others who prefer lightweight or no-build approaches might find it useful too. It runs entirely in the browser using native ES modules and custom elements, so there’s no bundler or complex tooling involved.
If you enjoy working close to the browser or like experimenting with minimalistic web development, you might find it interesting. Just sharing in case it helps someone or sparks ideas. Cheers!
Link: https://e-html.org/
https://redd.it/1oyv9xw
@r_php
e-html.org
EHTML
EHTML (or Extended HTML) can be described as a set of custom elements that you can place on an HTML page for different purposes and use cases. The goal of this library is to provide a convenient way to eliminate JavaScript code on the client side as much…
Show the progress of your background jobs in your UI and support cancelling running jobs safely
https://redd.it/1oyynco
@r_php
https://redd.it/1oyynco
@r_php
Mocking static methods and built-in functions in PHP
https://www.tqdev.com/2025-mocking-static-methods-built-in-functions-php/
https://redd.it/1oz1ay0
@r_php
https://www.tqdev.com/2025-mocking-static-methods-built-in-functions-php/
https://redd.it/1oz1ay0
@r_php
TQdev
Mocking static methods and built-in functions in PHP
Testing code that relies on static methods or built-in functions can be challenging in PHP. Traditionally, you’d have to refactor your code to inject dependencies or wrap functions in testable interfaces. To allow you to write clean, maintainable tests without…
Weekly Ask Anything Thread
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1oz6q1c
@r_php
Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.
https://redd.it/1oz6q1c
@r_php
Reddit
From the symfony community on Reddit
Explore this post and more from the symfony community
Weekly help thread
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1oz9n6n
@r_php
Hey there!
This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!
https://redd.it/1oz9n6n
@r_php
Reddit
From the PHP community on Reddit
Explore this post and more from the PHP community
PHP 8.5 will be released on Thursday. Here's what's new
https://stitcher.io/blog/new-in-php-85
https://redd.it/1oza79j
@r_php
https://stitcher.io/blog/new-in-php-85
https://redd.it/1oza79j
@r_php
stitcher.io
A blog about modern PHP, the web, and programming in general. Follow my newsletter and YouTube channel as well.
New in Symfony 7.4: Better PHP Configuration
https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ozd8ih
@r_php
https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ozd8ih
@r_php
Symfony
New in Symfony 7.4: Better PHP Configuration (Symfony Blog)
Symfony 7.4 replaces the fluent PHP config with a new array-based format with full autocompletion, static analysis, and dynamically generated array shapes.
Disappointed in Laracon AU
It's a trend I've noticed over the last few years, but Laracon AU was probably the final straw.
All credit to Michael and the Laracon AU team, I know organising such an event can't be easy, but the lack of technical talks at what is meant to be a technical conference was really disappointing. And I'm not the only one - my entire team was really disappointed.
For context, we're all senior engineers from 7 to 20+ years experience, and Laracon (of which I've been to 7 across the world) used to be very technical in nature. It either had lots of cool Laravel stuff (such as deep dives into the framework), business stories regarding challenges that were solved, or PHP-related stuff, such as design pattern implementation talks or DDD content.
But of all the talks that were there, only 2 were somewhat technical. First there was James' talk on Laravel Forge and some of the decisions and solutions made there (which was my favourite of the two days), or Auth factories by Mary, which was unfortunately hamstrung by her confusing presentation of the use of factories in Laravel (which weren't wrong, but was convoluted by poorly-communicated examples). I could see what she was going for, but after talking with other seniors at the conference, they were also really confused and found it hard to follow.
Lastly, Jason McCreary's talk on Blueprint was interesting, but not really aimed at senior engineers.
In reality, there was literally no content that provided any value to senior engineers, and so the value of the conference to us was zero.
This is not what Laracon used to be. Half our team also went to the last Laracon EU and felt the same way - that the value of the conference for senior has gone down.
It seems to me the conference is now only aimed at beginners, in addition to an underlying thread of political points that have been present since 2016 and is honestly rather trite.
I really hope this changes, as we've discussed internally that'll likely be the last Laracon we attend, and instead look to other conferences - and I think that's really unfortunate. I have such fond memories of the first few laracons in US/EU and always came away inspired and refreshed, so it's disappointing that the last few have left me feeling rather empty.
I know this feeling isn't universal, I spoke to several other people who enjoyed the conference, but for me and my team, it's hard to be excited about future Laracons.
https://redd.it/1ozdebg
@r_php
It's a trend I've noticed over the last few years, but Laracon AU was probably the final straw.
All credit to Michael and the Laracon AU team, I know organising such an event can't be easy, but the lack of technical talks at what is meant to be a technical conference was really disappointing. And I'm not the only one - my entire team was really disappointed.
For context, we're all senior engineers from 7 to 20+ years experience, and Laracon (of which I've been to 7 across the world) used to be very technical in nature. It either had lots of cool Laravel stuff (such as deep dives into the framework), business stories regarding challenges that were solved, or PHP-related stuff, such as design pattern implementation talks or DDD content.
But of all the talks that were there, only 2 were somewhat technical. First there was James' talk on Laravel Forge and some of the decisions and solutions made there (which was my favourite of the two days), or Auth factories by Mary, which was unfortunately hamstrung by her confusing presentation of the use of factories in Laravel (which weren't wrong, but was convoluted by poorly-communicated examples). I could see what she was going for, but after talking with other seniors at the conference, they were also really confused and found it hard to follow.
Lastly, Jason McCreary's talk on Blueprint was interesting, but not really aimed at senior engineers.
In reality, there was literally no content that provided any value to senior engineers, and so the value of the conference to us was zero.
This is not what Laracon used to be. Half our team also went to the last Laracon EU and felt the same way - that the value of the conference for senior has gone down.
It seems to me the conference is now only aimed at beginners, in addition to an underlying thread of political points that have been present since 2016 and is honestly rather trite.
I really hope this changes, as we've discussed internally that'll likely be the last Laracon we attend, and instead look to other conferences - and I think that's really unfortunate. I have such fond memories of the first few laracons in US/EU and always came away inspired and refreshed, so it's disappointing that the last few have left me feeling rather empty.
I know this feeling isn't universal, I spoke to several other people who enjoyed the conference, but for me and my team, it's hard to be excited about future Laracons.
https://redd.it/1ozdebg
@r_php
Reddit
From the laravel community on Reddit
Explore this post and more from the laravel community
Web Socket (Soketi)
Has anyone worked with Soketi (https://docs.soketi.app) as a WebSocket server?
I'm trying to integrate Soketi into my application. I already have it working in my local environment, but I'm having trouble getting it to work in production.
The production environment is a bit more complex than local. The Laravel application runs on two different servers behind a load balancer, and I need to host the Soketi server on a third server for scalability purposes. However, I haven't been able to make it work.
Has anyone dealt with a similar setup and could provide some guidance?
PS: The application is multi-tenant.
https://redd.it/1ozffxp
@r_php
Has anyone worked with Soketi (https://docs.soketi.app) as a WebSocket server?
I'm trying to integrate Soketi into my application. I already have it working in my local environment, but I'm having trouble getting it to work in production.
The production environment is a bit more complex than local. The Laravel application runs on two different servers behind a load balancer, and I need to host the Soketi server on a third server for scalability purposes. However, I haven't been able to make it work.
Has anyone dealt with a similar setup and could provide some guidance?
PS: The application is multi-tenant.
https://redd.it/1ozffxp
@r_php
docs.soketi.app
soketi | Soketi
Soketi is your simple, fast, and resilient open-source WebSockets server. 📣
SymfonyCon Amsterdam 2025: Inside Gally: Building an AI Product Discovery Tool with Symfony
https://symfony.com/blog/symfonycon-amsterdam-2025-inside-gally-building-an-ai-product-discovery-tool-with-symfony?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ozn3a0
@r_php
https://symfony.com/blog/symfonycon-amsterdam-2025-inside-gally-building-an-ai-product-discovery-tool-with-symfony?utm_medium=feed&utm_source=Symfony%20Blog%20Feed
https://redd.it/1ozn3a0
@r_php
Symfony
SymfonyCon Amsterdam 2025: Inside Gally: Building an AI Product Discovery Tool with Symfony (Symfony Blog)
New talk: Explore how Symfony powers Gally, an AI product discovery tool. In “Inside Gally: Building an AI Product Discovery Tool with Symfony” at SymfonyCon Amsterdam 2025, Romain Ruaud will show…