PHP Reddit – Telegram
PHP Reddit
34 subscribers
291 photos
37 videos
24.9K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
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/1lyxtxm
@r_php
Using spatie/laravel-data with Doctrine

Haven't seen this combo yet on here. Anybody use this combination, and which Collection library do you use? I'm thinking that I will need to use doctrine/collection instead of laravel-data's so that Doctrine doesn't break.

https://redd.it/1lz5f28
@r_php
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/1lzbrx5
@r_php
Built a tool to help my YouTube audience actually finish their projects, maybe it can help you too

Hey all,

Gio here from the ProgramWithGio YouTube channel. I don't post much here on Reddit, but I wanted to share a project I released some time ago.

I create coding tutorials focused on PHP & Laravel, and want to help people actually build portfolios, not just watch videos. The problem is, after watching a tutorial, people often don't know what to work on next or how to structure their learning into real projects.

So I built CodeArch. It's basically a project management tool designed to give you a guided path for building projects, so you always know what to work on next. I also built it to scratch my own itch. If you're like me, you probably have a graveyard of unfinished side projects. You start with a great idea and tons of motivation, but then scope creep sets in, you get lost in what to do next, and that initial excitement kind of fades away. CodeArch attempts to solve this by breaking down projects into clear, actionable tasks with gamified elements so you feel a sense of reward and progress after completing each one.

For my YouTube audience, this reinforces the content I create. I'm curating projects and recording full walkthroughs, so you can follow along and actually complete what we start. But I'm also designing this to be useful beyond my YouTube community, I believe it could help any developer build projects step by step with clear direction. I'd love to see if that theory holds up and if it resonates with developers outside my audience.

I'm focusing on PHP & Laravel developers since that's my niche, but the tool can work for any stack. You can create project roadmaps yourself, and in the future I'm planning to let you share them with the community or enroll in highly-ranked community project paths. You can also use the built-in AI support to generate project breakdowns with a simple prompt and select a custom stack where you describe your tech stack in the prompt. You can watch a course on YouTube, Laracasts, CodeCourse, or Udemy and then feed some of the topics you learned into CodeArch to generate a project breakdown that you can follow.

Some features I want to add if I see there's enough interest include an AI assistant for individual tasks when you get stuck, exportable project and task context for tools like Cursor, ClaudeCode, ChatGPT, etc., daily/weekly coding challenges, and the ability to share your custom project breakdowns with other developers.

It's free. Down the road I might add a premium tier with extra AI credits and features, maybe even hands-on support from me, but monetizing isn't my priority right now. I genuinely want to see if this solves the "tutorial hell" problem for other developers.

Honestly, I built this to solve my own problem of helping my audience actually start & finish projects. If it's useful beyond my YouTube community, that's awesome. If not, at least my subscribers will benefit.

Check it out at codearch.app

You can also watch the announcement video if you prefer video format: https://www.youtube.com/watch?v=jGqE4HQFwHg

Thanks!

https://redd.it/1lzdir9
@r_php
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/1lzeq6p
@r_php
DTOs, when does it become too much?

Hi guys, I hope you are all good. I started working on a new project over the last week, and was using DTOs(nothing fancy, just read-only classes and properties), and this got me thinking, when does it become too much(or is there even anything like too much DTOs). When does DTOs become "harmful"?
Is there a point like "okay, this are too many DTOs, you should consider a different pattern or approach"?

Sorry if this seems like a vague question, I just can't get it out of my mind and thought I'd ask other Devs.


https://redd.it/1lzgnxr
@r_php
Building a code graph for PHP

Are there any tools that support codifying PHP codebases into a graph - like for Neo4j? I know there are some for Python, JavaScript, and Typenoscript. But I haven’t seen anything for PHP yet.

https://redd.it/1lzhgkz
@r_php
Using a "heartbeat" pattern for cron jobs bad practice?

I've built an app that currently uses cron jobs managed through the built-in cron manager in my Cloudways hosting panel. It's functional but hard to read, and making changes requires logging into the host panel and editing the jobs manually.

I'm considering switching to a "heartbeat" cron approach: setting up a single cron job that runs every minute and calls a noscript. That noscript would then check a database or config for scheduled tasks, log activity, and run any jobs that are due. This would also let me build a GUI in my app to manage the job schedule more easily.

Is this heartbeat-style cron setup considered bad practice? Or is there a better alternative for managing scheduled jobs in a more flexible, programmatic way?

https://redd.it/1lzjire
@r_php
AI's effect on developer-friendly frameworks like Livewire?

I've been tinkering with Copilot's Agent mode over the last month or so, and it got me thinking; a framework like Livewire that sacrifices some performance in an effort to provide significant improvements to the developer experience... is that gonna go by the wayside? It pains me to say because I really love Livewire, but as we write less and less of our own code by hand, it seems logical to assume there will be less and less importance placed on super convenient things like most of what Livewire offers.

Thoughts?

https://redd.it/1lzobw7
@r_php
Built a tool for my YouTube audience to actually finish their projects, maybe it can be useful for you too

Hey all,

Gio here from the ProgramWithGio YouTube channel. I don't post much here on Reddit, but I wanted to share a project I released some time ago.

I create coding tutorials focused on PHP & Laravel, and want people to actually build portfolios, not just watch videos. After watching a tutorial, people often don't know what to work on next.

So I built CodeArch. It's basically a project management tool designed to give you a guided path for building projects, so you always know what to work on next. I also built it to scratch my own itch. If you're like me, you probably have a graveyard of unfinished side projects. You start with a great idea and tons of motivation, but then scope creep sets in, you get lost in what to do next, and that initial excitement kind of fades away. CodeArch attempts to solve this by breaking down projects into clear, actionable tasks with gamified elements so you feel a sense of reward and progress after completing each one.

For my YouTube audience, this reinforces the content I create. I'm curating projects and recording full walkthroughs, so you can follow along and actually complete what we start. But I'm also designing this to be useful beyond my YouTube community, I believe it could be useful for any developer to build projects step by step with clear direction. I'd love to see if that theory holds up and if it resonates with developers outside my audience.

I'm focusing on PHP & Laravel developers since that's my niche, but the tool can work for any stack. You can create project roadmaps yourself, and in the future I'm planning to let you share them with the community or enroll in highly-ranked community project paths. You can also use the built-in AI support to generate project breakdowns with a simple prompt and select a custom stack where you describe your tech stack in the prompt. You can watch a course on YouTube, Laracasts, CodeCourse, or Udemy and then feed some of the topics you learned into CodeArch to generate a project breakdown that you can follow.

Some features I want to add if I see there's enough interest include an AI assistant for individual tasks when you get stuck, exportable project and task context for tools like Cursor, ClaudeCode, ChatGPT, etc., daily/weekly coding challenges, and the ability to share your custom project breakdowns with other developers.

It's free. Down the road I might add a premium tier with extra AI credits and features, maybe even hands-on support from me, but monetizing isn't my priority right now. I genuinely want to see if this solves the "tutorial hell" problem for other developers.

Honestly, I built this to solve my own problem of helping my audience actually start & finish projects. If it's useful beyond my YouTube community, that's awesome. If not, at least my subscribers will benefit.

Check it out at codearch.app

You can also watch the announcement video if you prefer video format: https://www.youtube.com/watch?v=jGqE4HQFwHg

Thanks!

https://redd.it/1lzp35x
@r_php
Starter kits not asking which db to use

Just very curious about this since i just started using the new starter kits but why did they make it so that the cli doesn't ask you anymore which database you want to use? If it's just plain laravel-blade it does ask which db to use but starter kits don't why is that? I know you can migrate later if you want but just seemed a little weird to me.

https://redd.it/1lzq4px
@r_php
AI my few thoughts

I know it’s r/PHP, but I work as PHP dev and I want to share some thoughts.

I was trying to use AI from the very beginning when first models were released in my daily work and adapt it to my needs.
Unfortunately it wasn’t easy before agents came out and I always ended up being frustrated.

Now when agents are available and I can create strict rule how agent should act and what should know about project, it’s really helpful tool.

I can write business requirements to agent and it does the job in 90%, the remaining 10% is my code review to make sure everything is as I’d do it.

It really speed up my work, such a great tool.

https://redd.it/1lzya2w
@r_php
Big news! Larasense is now open source!

Larasense brings together the latest Laravel articles, YouTube videos, and podcasts from credible sources we all know and love. No distractions. Just Laravel.

Whether you're a beginner or seasoned developer, Larasense helps you stay up-to-date without hopping between platforms.

Would love your feedback and contributions.

Let’s build this together the Laravel way. ❤️

Distraction-free. Just Laravel. Community-powered.

🌐 larasense.com

🔗 github.com/nabilhassen/larasense

https://redd.it/1m0aew9
@r_php
PHP - Still a Powerhouse for Web Dev in 2025

I really don’t like hearing “is PHP still alive”, I really don’t. I think we should move to just saying that it is. Paweł Cierzniakowski's recent article is a good example of that. Covering topics like:

Modern Features: PHP 8.X brings stuff like union types, enums, and property hooks, making code safer and cleaner.
Frameworks: Laravel and Symfony are rock-solid for building APIs, queues, or real-time apps.
Real-World Use: Big players like Slack and Tumblr lean on PHP for high-traffic systems. (In the fallout of the article I’ve been hearing that Slack is not using the PHP as of today, but i have found their article [on using Hack with the PHP as of 2023](https://slack.engineering/hakana-taking-hack-seriously/), so let me know if you have some fresher information)
Community: The PHP Foundation, backed by JetBrains and Laravel, keeps the language secure and future-proof.

When I was chatting with Roman Pronskiy we both agreed that it’s time for the community to move away from trying to justify the existence of PHP, and start giving it credit where it’s due. I think that will be beneficial for the whole community. If you want to check the full article you can do it here: https://accesto.com/blog/evaluating-modern-php/ 

https://redd.it/1m0co77
@r_php