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
Neuron AI is a LangChain and LangGraph like implement for PHP.

https://docs.neuron-ai.dev/

Neuron AI is a LangChain and LangGraph like implement for PHP.

It covers all features and well architectured implementation. It covers all features like AI Agent , Chat memory, AI Providers, Agentic AI, RAG etc

I was reading the documentation of Neuron AI from morning. Really well documented - I should say

It's documented such that it's good for very beginners with proper reasons.

I am happy to see this in PHP...

https://redd.it/1lgynr5
@r_php
Top php authentication system in 2025?

What’s recommended for best php authentication systems these days? (Free is nice.)

https://redd.it/1lh1gm9
@r_php
What should I catch up with in Laravel ecosystem (been out of the game for more than a year)

I have worked with PHP for 8+ years now and 5+ years have been with Laravel. I took a break for more than a year and now I am ready to get back to work. A lot can change in a year and I would love to know what are the things I should look into especially in Laravel ecosystem. Would few weeks be enough for this?

https://redd.it/1lh1mu0
@r_php
How to make WordPress fun/tolerable in 2025?

If I were to build out a site where I'm in control of the hosting, and can build it on 8.2 or 8.3, what are some things I should do to make it enjoyable? What features in the language/ecosystem do you find really improve the experience? Especially things like data migrations and static analysis. Building out dtos and type hinting, psalm/phpstan @template generics, etc. What discoveries have you found really improve the dx?

https://redd.it/1lh1ud8
@r_php
Operating without foreign key constraints

This week I've seen Chris Fidao talked about the fact that we should get rid of foreign key constraints: https://x.com/fideloper/status/1935327770919252016


PlanetScale also recommends to get rid of them. Apparently, at scale, it becomes a problem.
Just to clarify: we are not talking about removing foreign keys. Only foreign key constraints.

When foreign key constraints are not there, you, the developer, have to make sure that related rows are deleted. There are many strategies to do this.

Have you tried to get rid of the constraints? How did it go? What strategy have you used to enforce data integrity in your app then?

Thanks for helping me understand if I should go through that route.

https://redd.it/1lhai9a
@r_php
Are PSRs still relevant today?

Are developers still using PSRs? Are PSRs still being updated or is it dying out?

I noticed for a "standards" org, they don't even follow their own coding styles. Some files have the PHP tag on its own line and others share it with declare strict types.

Then there are inconsistencies in how PHPDocs are written/organized, even some PHP code as well.

https://redd.it/1lhacr0
@r_php
🚀PHP Package Stream JSON progressively — like React Suspense, but for your API

Tired of APIs that make your users wait until everything is ready? I’ve just released a tiny package that streams JSON progressively — sending the base structure instantly, then filling in slower data as it's ready.

👉 Inspired by Dan Abramov’s Progressive JSON video

👉 Perfect with React/Vue Suspense, dashboards, mixed-speed APIs

Instead of: { "user": "...", "posts": "...", "stats": "..." } // Waits for slowest piece

You get:

{ "user": "$user", "posts": "$posts", "stats": "$stats" }
// Then: streamed chunks like / $user / { id: 1, name: "John" }

Laravel-ready → response()->stream()

Works with simple JS client

Supports nested keys (stats.views, user.profile)

Streams breadth-first (structure first, content later)

GitHub: https://github.com/egyjs/progressive-json-php

Keen to hear your thoughts — especially on other use cases inside Laravel apps. 🍸

https://redd.it/1lhjdip
@r_php
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/1lhssan
@r_php
Samarium v0.9.6 - Improvements and fixes (Delete implemented, models in standard directory, consistent directory structure, UI updates)

Hello All,

Made some improvements to my project in past months. Sharing the update here.

It is a business management tool, made using Laravel and Livewire.

https://github.com/oitcode/samarium

|Area|Improvements|
|:-|:-|
|Delete|Delete functionality added in most of the modules.|
|Models in proper directory|Have moved all the models inside app/Models directory, as is the Laravel standard now. Previously models were in /app directory. Also have grouped models inside related subdirectory. For example product related models are in app/Models/Product directory.|
|Consistent Livewire component directory structure|All livewire components have a consistent directory structure now. |
|Started using service classes.|Have started to use service classes which are in app/Services directory. It is a work in progress, but aim is to move the application/business logic out of models and move them to service classes.|
|UI updates|Made UI changes to make it more user friendly. |
|POS/Billing UI updates|POS/Billing has been made more traditional type UI.|
|Misc updates|Bug fixes.|

https://preview.redd.it/cla3roo1ui8f1.png?width=1846&format=png&auto=webp&s=4a645489c516ff3238dee7429652f3fdcab54de6

It is a work in progress, but still sharing the update here.

Feedback, comments and/or contributions are highly appreciated.

Thanks.

https://redd.it/1lhuvqj
@r_php
MLB Stats API for Laravel

So, I found out the MLB Stats API is free to the public, so I built a wrapper for it for Laravel or PHP projects in general.

Check it out and let me know your thoughts!

https://github.com/zacksmash/mlb-stats

https://redd.it/1li45cs
@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/1li6855
@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/1li91ha
@r_php
How to Overcome Security Anxiety

Hello everyone,

I'm 20 years old and I've been interested in WordPress development for about 5 years. I've also been learning Rust as a hobby. I've tried many things in the software field so far; I've started different projects, I've tried to learn new technologies. However, I've never been able to complete any project completely. The main reason for this is the security concerns I have.

For example, I want to develop a WordPress plugin or theme with PHP or I want to create an application in an MVC structure. But these thoughts keep coming to my mind: “What if my application gets hacked?”, “What if I did something wrong in terms of security and I have problems because of that?”, “What if I get a penalty because of that?”

These thoughts keep going round and round in my mind, and they create a lot of anxiety. This anxiety seriously affects my motivation to produce software and my commitment to the projects. Therefore, I cannot develop my projects with peace of mind and I leave most of them unfinished.

What would you suggest me to do about this? I would be very grateful if you could share your advice and guidance.

https://redd.it/1licurn
@r_php
Feeling stuck as a full-stack web developer, what should I do now..

Hi everyone,

I’m a 2024 CS grad and currently working as Jr. WordPress Full-Stack Engineer at a service based firm, having 1.5 years of experience. My current role includes creating new themes and plugins, managing internal sites and integrating new functionalities into them.

While my current organization is a great place to work certified, still I face lack of support and guidance from my manager on critical situations. I talked to them on this but it never helps.

My manager starts to shout at me whenever any issue occurs without bothering to know the root cause of the issue.

Due to this I started fearing my manager for asking any kind of guidance on how we can handle the critical situation efficiently or any other work related issues. He is neither friendly nor supportive.

Now I just want to leave this firm due to the toxicity and want to switch my role to work as a React developer. But due to my current role i.e., Jr. WordPress Engineer I'm not able to get shortlisted in any kind of React dev positions.

Now I’m anxious, stuck, and worried, what should I do now to change my role and my current firm. I have worked in WordPress Theme & Plugin development, PHP, React.js, Next.js, Firebase, MySQL, Git, Github, TailwindCSS and Material UI.

I'm able to integrate any kind of functionalities into the web application while managing the best practices, coding standards and best security practices (OWASP Top 10) and others.

I'm also having experience in improving the Core Web Vitals i.e., FCP, LCP, CLS, and reducing TBT.

I am open for SDE positions and can even switch technologies in very short span of time.

Please help me any advice and suggestions would be helpful for me.

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