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
Debugging tools for PHP?

Hi all, if you're working on JS, we got the benefit of browser tools that allow you to test code in real-time, pause them, track variables, show errors, etc. Are there tools that do something like that for PHP?

If there are no such tools, are there other tools or methods that you recommend besides looking through error logs?

FYI I ask this as a guy who's developing Wordpress themes. I thought I can ask here as it's very reliant on PHP.

EDIT: Just noticed the rule indicating that this subreddit isn't for help posts. So this'll be the last time I'll post something like this here. Thanks for those who posted their feedback.

https://redd.it/1l1u3ln
@r_php
AI and IoT with Laravel - Is it really a real opportunity or just a hype.

Has anyone here integrated AI APIs or IoT devices with Laravel in real-world projects?

I’m curious about the practical challenges and benefits, like using Laravel to process real-time IoT data, automate tasks, or add AI-driven features such as chatbots or analytics.

What use cases have you found most effective, and what hurdles did you face during implementation?

https://redd.it/1l2722t
@r_php
Is it Good idea to switch to PHP in 2025?

Hey guys, I am a backend Dev with major experience in Golang. I got a job offer where major work would be around PHP (70%) and Go(30%)

The works is around building Wordpress hosting platform not Wordpress websites.

I have never worked on PHP and I am worried if switch to job where major work is PHP might not be good idea considering future opportunities.

How is the scope of PHP in future with respect to Job opportunities?

Edit: Just to clarify the work is around, orchestration and configuration of Wordpress site in docker container. Not building Wordpress website. It’s a WordPress hosting platform as a service.

https://redd.it/1l29fa8
@r_php
First release of the Searchcraft API PHP client is now available

# Greetings developers!

We are excited to announce the first release of our PHP API client!


If you are unfamiliar with Searchcraft we have been building our core API since 2021 but we just went into beta back in February of 2025. We are working on building a information discovery platform that is easier for devs to use than what is currently out there with faster performance. Our focus is on enabling developers to integrate search quickly and easily into their apps without having to be experts in the search niche.

Integrating Searchcraft endpoints into your PHP application has just gotten a whole lot easier. To install it, just use Composer.

composer require searchcraft/searchcraft-php

You will also need to install a PSR-18 compatible HTTP client, we recommend Guzzle if you don't already have one in mind

composer require guzzlehttp/guzzle http-interop/http-factory-guzzle:^1.0

This brings the full breath of the Searchcraft API directly into your application without need to manually construct your REST calls and worry about duplication of request configuration. Why build your own API wrapper when you can ship faster with our dedicated client?

The client is fully PSR standards compliant with type-safe operations over the API endpoints. There is rock-solid exception handling and you are not having to write a bunch of cURL boilerplate.

The package is Apache 2 licensed and the source is available at https://github.com/searchcraft-inc/searchcraft-client-php

If you have q's I'm happy to answer them here or in our community Discord.

https://redd.it/1l2wutx
@r_php
Ad-hoc queries in DQL (doctrine query language)

I use DQL in code, but I noticed that for anything slightly complex, e.g. with joins I'm much more familiar with SQL than I am with DQL. Sometimes I have to run the function to convert the DQL to SQL and dump to check the query generated is what I want.

I realised one reason I'm more familiar with SQL is that I'm doing ad-hoc queries all the time to look at data in our staging and production database using SQL. So I thought it might be very handy to have a way to do those ad-hoc queries with DQL instead.

Does anyone know if there's a tool that supports ad-hoc querying with DQL? Or if it might make sense to add support to that as a feature in phpMyAdmin or anything similar. Maybe also in PHPStorm but that seems a lot harder since it isn't written in PHP.

https://redd.it/1l33llw
@r_php
PatchPub - Patch any PHP Composer dependency anyway you need

I've build a composer-patches alternative, with with I can change any file in any dependency used by Composer, and manage patches for multiple projects, all in one place.

URL: [https://patchpub.com](https://patchpub.com)

**My biggest pain points** with the existing composer-patches packages are:

* They work only after a dependency is downloaded/extracted. So no way to change composer.json, for example to adapt the supported PHP version, or another package version, because it's fixed.
* They only support diff patches. I have to update patches anytime the diff doesn't work anymore. Sometimes I just need a simple search&replace, or replace a whole file.
* Sometimes a patch error gets lost in the whole stream of composer messages, when running "composer update". So I don't realize until later that a patch didn't apply.
* Managing same/similar patches across multiple projects and php versions and package versions is a big pain...
* I don't like to fork GitHub Repositories and patch there, and wait until the package core maintainer finally merges my PR (or not), and maintain my fork the whole time (or longer).

So I build my own solution, PatchPub, and already integrated it in production projects.



**With PatchPub you can:**

* Patch any file, anyway to you want (search&replace of strings, or using regex; replace file content; apply patch, import GitHub Pull Request)
* Manage patches and projects all in one place, which is really helpful with many projects.
* Get error notifications if a patch cannot be applied anymore, right after a new version of a package is released.
* Many more...



**Feedback welcome on:**

* Are there other game changer features you need to switch from other composer-patches plugins?
* Would you test or use PatchPub at all?

Thx in advance for any feedback... Please visit [patchpub.com](https://patchpub.com) and give it a try.

https://redd.it/1l33bn1
@r_php
How we built a clean and versatile badge notification system in Sharp
https://redd.it/1l35uyc
@r_php
should i focus procedural php or continue learning until i finishes all the oop concepts?

I've been learning php through to programming with gio, i am on the namespace section and i am kinda struggling to understand the concept, but i do manage to understand it using copilot to explain the code functionality. i ask in discord about nullsafe in oop and someone said that i should directly build in order to learn and not to watch tutorials because you are not learning base on what he says. oop is large, should i focus learning all the concepts and follow what gio is coding in the video or should i abandon the tutorial and start building after learning the basics of php? right now, i still don't know about sql and building simple login website using php but i have sufficient knowledge about html and css. i am kinda lost. any advice is appreciated, thank you.

https://redd.it/1l3asc5
@r_php
I just finished migrating VitoDeploy to Ineriajs 🥹
https://redd.it/1l3f87r
@r_php
How do I choose between Livewire and Vue.js for my project? Your criteria and feedback

Hi everyone,

I am currently working on a project for an application that is intended to serve the customers of a in the context of requests for financing for the customer of a bank, and I hesitate between two technologies for the front-end part: fr in the cad Livewire and Vue.js. I'm trying to better understand which criteria I should take into account when making my choice.

To give you some context:

My project needs to handle real-time interactions, integrate with Laravel.

I'm used to Laravel and Livewire.

The technical constraints are limited hosting, no complex APIs, etc...

My main question: what criteria or aspects should I consider when choosing between Livewire and Vue.js in this case? For example, ease of learning, performance, scalability, integration with Laravel, or something else? If you've used either technology, I'd love to hear your feedback!

Thanks in advance for your advice!

https://redd.it/1l3h9ag
@r_php
Recommendations for Backend Hosting

I'm needing to provision a single mysql db, and to host some php code that will handle api calls from my front end - the API accepting 10-50 lines of text on an api transaction. Possibly 25 users simultaneously at any one time, but that may be a hopeful number even.

Between Railway and Linode (now called Akamai ), what might be the best option.
\- Looking for economy. The $5/mo plan on Railway, or the $12 plan on linode is what I'm looking at.
\- But, was wondering if anyone with experience in either hoster - if you found your useage all of a sudden is pushing the limits of the plan you choose, which hoster of the two makes it easy to just boost up to the next plan without having to re-deploy if that's possible.

Note: I was considering Linode because I heard they have built in protection against DDOS'ing, and have heard stories about big unexpected bills you can get.

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