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
Built a Self-Refining Content Agent that removes the manual feedback loop

Ever had this experience? You prompt an AI to write something, get back "meh" content, revise your prompt, get feedback, ask for revisions, and repeat. You basically become a supervisor doing the AI's QA work.

What if that process was automated?

Two agents, separate roles. One writes content, one reviews it against your specific rules and gives scored feedback. They loop until the output hits your quality threshold.

How it works:

Your topic/prompt → Writer Agent (creates based on your rules) → Reviewer Agent (scores against rules) → Score >= 85? Done. If not, loop with feedback.

We just published a full tutorial with code examples and real-world implementation tips for Laravel.

If you're working with AI agents or exploring automation patterns, this one's worth stealing for your own work.

Edit: Link in comments



https://redd.it/1p22w1i
@r_php
How to run SQL queries based only on form filled parts?

Let's say I have a form, with different inputs like text field, dropdown list and datepicker, how can I make it so that it only queries those inputs which are not empty?

Do I check the input value with isset() and based on that run some SQL which is then concatenated to the "main" query?

What is even the correct term for this type of action so I can search and study it more?

https://redd.it/1p2du73
@r_php
Digital marketer here — curious about how PHP is evolving in 2025

I’m not a PHP developer, but I work in digital marketing and handle a lot of websites built on PHP (WordPress, custom CMS, etc.). I’m trying to understand how PHP is evolving in 2025 so I can plan better for performance, security, and SEO.

Not asking for coding help — just interested in the community’s insights on:

How PHP development has changed recently
What modern practices or versions matter most for long-term site health
Whether PHP 8+ gives any real-world speed or stability improvements
Anything marketers should know when working with PHP-based websites

Would love to hear your thoughts from a developer’s point of view.

https://redd.it/1p2s0z7
@r_php
I made a simple PHP CMS for my static sites - might be useful for someone

Hey everyone! I'm sharing a small project I've been using for my freelance work. It's far from perfect, but it solves my specific problems, so maybe it could help someone else too.

My situation:

I build static, multilingual sites for small clients who rarely update content. WordPress always felt too heavy, and headless CMSs meant dealing with third-party services. I work mostly with PHP hosting and wanted something dead simple.

What I made:

A lightweight CMS that stores everything in a single JSON file (I know, not ideal, but works fine for small sites with a single admin). It has a Vue-inspired syntax for templates:

<h1>{{page\_noscript}}</h1>

{{#if language == "en"}}

<p>Welcome!</p>

{{/if}}

There's also a basic admin panel for editing content - though I'll be honest, that part was mostly generated by Gemini 3 and needs work.

It's been working well enough for my projects, so I figured someone else might find it useful. It's not groundbreaking, just a tool that fits a specific niche.

GitHub: https://github.com/fellarrusto/kris-cms

Feel free to use it, fork it, or tell me what's broken. No expectations, just putting it out there.

https://redd.it/1p2zovw
@r_php
Laravel Cloud + Cloudflare: Could a Huge DDoS Attack Cause Massive Bandwidth Charges?

We’ve been using Laravel Cloud for a few new client projects and, overall, we’re really happy with it. The deployment workflow is great, the zero-management approach is ideal for our smaller clients, and the CDN performance has been solid. Bandwidth pricing initially worried people when Laravel Cloud launched, but the changes made earlier this year seem to have fixed the biggest pain points, we haven’t seen anything scary on our invoices, and costs have been very manageable so far.

That said, our priority is cost control over uptime. These aren’t mission-critical systems. We want the benefits of the CDN and the streamlined developer experience, but if traffic goes completely crazy, we’d rather see the site fail than suddenly be on the hook for an unexpected bill.

Our apps typically scale to somewhere between 1–4 replicas, and even hitting 4 has never happened. Redis and MySQL are fixed-size, so the system naturally caps itself, this is intentional. Beyond normal usage we’re fine with it falling over.

Like everyone else, we got hit by the Cloudflare outage last week. It sent me down a rabbit hole reading Cloudflare’s blog posts, which led me to the article where they blocked a 7.3 Tbps DDoS attack — “37.4 TB delivered in 45 seconds.”

That number really stuck with me.

So here’s my question: What would actually happen if something like that hit a Laravel Cloud site?

Laravel Cloud sits behind Cloudflare, but Cloudflare isn’t physically inside the Laravel Cloud infrastructure, so even if most malicious traffic is filtered, what about the small percentage that gets through? With bandwidth at $0.10/GB, even a tiny leak from an attack that big could turn into a serious billing problem for a small client.

I know the chance is low, but DDoS attacks are rising (I remember seeing something like 200% year-on-year growth), so it doesn’t feel like a pure theoretical risk anymore.

I’m trying to understand realistically:

Would Cloudflare manage to block the bulk of this traffic?
I imagine a measurable volume would get through?
I asusme Laravel Cloud doesn't reimburse DDoS-triggered bandwidth charges if the attack somehow bypasses Cloudflare layers?
Is this something Laravel Cloud users should overly concerned about?

We’ve even considered adding a Cloudflare rule that just blocks the entire site once it hits a daily traffic threshold, basically a kill-switch to cap the worst-case bill. But that requires upgrading to get extra rule capacity, and I’m not sure if it’s overkill or totally unnecessary. Could we put our own CloudFlare Proxy in front of Laravel Cloud?

Would love to hear from anyone using Laravel Cloud in production or anyone who understands Cloudflare’s behavior at this scale.

https://redd.it/1p3rr1h
@r_php
PHP + Usernoscript

Anybody built centralized mturk catcher with PHP + Usernoscript?

I am looking for the solution to catch the hit in mturk automatically from the centralized server.

https://redd.it/1p3qtv1
@r_php
UnoPim: Open-Source Product Information Management for Laravel
https://redd.it/1p3te3a
@r_php