PHP Reddit – Telegram
PHP Reddit
34 subscribers
286 photos
36 videos
24.7K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
VibedebugBundle v0.2.0 is out 🎉

AI-powered debugging inside the **Symfony Web Profiler**: open an exception profile and immediately chat with an agent to understand the root cause and possible fixes.

What’s new

* 💬 New chat experience in the profiler
* 🧠 Conversations stay attached to the profile (come back later — it’s still there)
* 🧩 Improved prompts/context for exception debugging
* 📝 Cleaner, more readable output in the UI
* Compatible with the **first tagged release of Symfony AI** (`symfony/ai-*` `^0.1`)

[https://github.com/sonnymilton/vibedebug-bundle/releases/tag/0.2.0](https://github.com/sonnymilton/vibedebug-bundle/releases/tag/0.2.0)
Feedback welcome 🙏

https://redd.it/1pwwjgp
@r_php
AuditReader query API for AuditTrailBundle

I’ve been working on a audit trail bundle and recently added a read-only AuditReader API to query audit logs (entity history, filters, diffs, transactions).

I’d really appreciate any feedback on the API design, naming, or missing use cases.

You can view the benchmark performance

I’ll also be uploading the architecture design documentation soon.

https://redd.it/1pwybxa
@r_php
Made a small tool in PHP for handling texts in images better

A year ago i needed something to generate images with text in them, but i wanted it so my code is more clean and easier to understand than copy and destroy every time i wanted to put a simple text. More specifically, i wanted so i am able to read my own text.


Now i decided to make this open-source, and maybe someone finds a use of it. https://github.com/Wreeper/imageworkout/


I know it's not the best piece of code, but it did what i wanted and it continues to do what i wanted it to do.

https://redd.it/1pwyd3m
@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/1pxxt3j
@r_php
Last time you roasted my AI-helped CMS so hard I deleted it. Now back with a full micro-framework I built while knowing jack shit about PHP. v0.3.0 with CSRF, route groups, and more. Round 2 ,experts, do your worst.

Hey r/PHP,

Story time (again).

last weeks showoff I posted my homemade CMS. English isn’t my first language, so I used AI to clean up replies. Code was mostly AI-assisted because let's be real I know jack shit about PHP.

You guys didn't hold back:

“AI slop”
“Vibe-coded garbage”
“No tests, no structure”
Someone begged mods to ban “AI vibe-coding”
Flamed me for using AI to reply (just fixing my English, chill)
xkcd 927 (obviously

Felt like crashing an "experts only" party. Deleted the post. Logged off. Thought “damn, maybe they're right.”

Then I got pissed off.

Took your "feedback", used even more AI, and built Intent Framework v0.3.0 a zero-magic, explicit micro-framework running my next CMS.

What's in it (since "incomplete" was your favorite word last time):

Middleware + pipeline
Sessions + flash
Full auth (bcrypt, login, logout)
Events
File cache with Cache::remember()
Validator
Secure file-based API routes
Built-in CLI (php intent serve, make:handler, make:middleware, cache:clear)
CSRF protection middleware (new!)
Route groups with prefix + middleware (new!)
\~3,000 lines core
69 tests, 124 assertions (nice added because you whined)

Repo: https://github.com/aamirali51/Intent-Framework

Full docs: ARCHITECTURE.md (click before roasting)

Here's the punchline:

I still know jack shit about PHP. Still used AI for most of it. And it took less time than most of you spend on one Laravel controller.

Meanwhile, the same "experts" screaming "AI is cheating" quietly hit up ChatGPT when they're stuck at midnight. We all do it. Difference is: I'm upfront about it.

AI isn't "slop" it's a tool. And it let a non-expert ship something cleaner than a lot of "hand-written" stuff here.

So go ahead, elite squad. Roast me harder. Tell me real devs don't use tools. Tell me to learn PHP "properly" first. Drop the xkcd (it's tradition).

I'll be over here... knowing jack shit... and still shipping updates.

Round 2. Bring the heat. 🔥

(This post ain't getting deleted.)

https://redd.it/1pxyn56
@r_php
Hotreload De FrankenPHP

Hey team,

Kevin Dunglass released this "hot\
reload" feature this week and I'd like to know if anyone has tested it yet?

https://redd.it/1pxzwpg
@r_php
Recommend any newer PHP books?

I prefer books or ebooks over video tutorials. Recommend any? Thanks.

https://redd.it/1pybkv1
@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/1pycb04
@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/1pyfh2q
@r_php
Weird text "8194460" appearing on many laravel websites

Crossposting is not allowed, but I wanted to share this post by Maskedman1022000.

Basically, multiple websites have the number 8194460 appearing. When googling I was able to find a few pages that appear to have the number indexed by Google, but all of them just redirected to a login form.

Even https://filamentapps.com/ has it at the top of the website right now.

u/Maskedman1022000 experienced it on his site, but haven't been able to reproduce it in his dev environment.

This is a reminder to check if your pages contain the same bug, and to hear if anyone has more information on the issue.

https://redd.it/1pyhkqa
@r_php
Should it still use global, static and associative array?

dumb question should i still use global, static and associateive array?

https://redd.it/1pykn6w
@r_php
Do you prefer .php in URLs or hiding it? Also… am I structuring Core PHP wrong?


Hey folks,

Kind of a dumb question, but it’s been bugging me more than it should 😅
Do you prefer having .php in your app URLs, or keeping them clean without it?

I know it doesn’t really matter functionally, but seeing .php in URLs just bothers me for some reason.

So what I did was this:
I have an /authenticate route that contains:
- index.php
- style.css

Instead of /authenticate/index.php, when a user visits /authenticate/, they see the page directly.
I mainly did this to hide the .php part. I know this can also be handled properly using .htaccess (Apache) or Nginx rewrite rules, but this felt like a simple and clean solution to me.

GitHub repo: https://github.com/SurajRaika/artifact/
Live site: https://artifact.wuaze.com

Feel free to roast it

---

Another question while I’m here (would really love some advice):

When working with Core PHP, how do you usually structure your project?

What I’m currently trying is:
- Making small “components”
- Each component lives in a single folder
- That folder contains PHP, CSS, and JS related to that component

Something like:

component/
index.php
style.css
noscript.js

What are the pros and cons of doing it this way?
Is this a bad idea long-term?
Is there a better or more common approach when not using a framework?

I’m mostly experimenting and learning, but I feel like I might be reinventing some bad patterns

---

Also,:
I’m kind of looking for a PHP job, so I built this project as practice and something to show.

If anyone has advice, feedback, or even a referral (though I doubt it 🥲), I’d really appreciate it.

Thanks, and sorry if these are beginner-ish questions.
Just asking because most of you probably have way more experience than I do.

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