PHP Reddit – Telegram
PHP Reddit
34 subscribers
288 photos
36 videos
24.8K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
CKEditor 5 Livewire integration
https://redd.it/1ohdk18
@r_php
Laravel Cloud now supports Managed Reverb
https://redd.it/1ohjz0r
@r_php
Operator nameof. Why it's stalling?

RFC: https://wiki.php.net/rfc/nameof

I would really like this feature so that I can statically reference any method or attribute. It would be extremely handy for frameworks. I could directly check references to the methods and attributes with static analyze, do a lot of refactoring with an IDE and string references wouldn't be an issue.

Is there anyone here with experience moving RFCs forward? What would need to happen for this RFC to start getting traction? This RFC is 2 years old and discussion died out. It doesn't seems that anything will happen in the nearest future.

https://redd.it/1ohpszv
@r_php
I'm excited to announce the release of Commenter (comment/reply system) v4

**Features**

* 📌 Ability to pin comment/message,
* 😊 Emoji support for reaction icons,

**Improvements**

* 🎨 Design,
* 🌙 Dark mode,
* 📱 Mobile responsiveness,

**Upgrade**

* Tailwind,
* Vite,

Bug fixes and more...

[https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/4.0.0](https://github.com/Lakshan-Madushanka/laravel-comments/releases/tag/4.0.0)

https://reddit.com/link/1oi2clz/video/shh7y10ussxf1/player

https://redd.it/1oi2clz
@r_php
PHP / Open Source Survey

Disclaimer: I work for Perforce Zend.


Calling #PHP developers: The 2026 State of Open Source Survey needs your technical perspective. Help us analyze enterprise #OSS adoption patterns and PHP ecosystem evolution.
Plus, for every 500 responses we receive, we'll increase our donation to open source initiatives by $1K 
Take the survey here: https://www.surveymonkey.com/r/7X93W9R

https://redd.it/1oibzkd
@r_php
Carbon 2 to Carbon 3 migration

I recently migrated my PHP application between versions of Carbon (as a part of another migration). What has been very painful is the change of the diffIn* methods.

The $abs parameter existed in both Carbon 2 and Carbon 3, BUT the default changed:

Carbon 2.x:
diffInSeconds($dt = null, $abs = true) // Default: absolute value

Carbon 3.x:
diffInSeconds($dt = null, $abs = false) // Default: signed value

Two questions:
1. I understand that there is a major version change that means that there might be breaking changes. But are there any ideas or explanations why has the default behavior been inverted without any good reference? For example, a parameter name might have changed to indicate this.
2. What would be a correct and the best way to detect such changes during the migrations apart from obvious rtfm and proper testing?

https://redd.it/1oidmhz
@r_php
Implementing Type Safety for PHP Arrays

Had a lot of thoughts swirling in my head lately about arrays, and wanted to try some different approaches in contrast to what I've come across. Wrote this article primarily as a brain dump. What are some other approaches better or different that you've come across that should be considered other than generics and SPL?

https://codefyphp.com/docs/blog/2025/10/28/type-safety-php-arrays/

https://redd.it/1oirr94
@r_php
I have made a Laravel based Artisan Command Executer. Wouod it be of any value?

Its a tool to execute Laravel Artisan commands directly from your browser, eliminating the need for SSH or terminal access. Built with Laravel 12, Tailwind CSS (via CDN), and jQuery, this project offers a user-friendly interface for developers to streamline their workflow. It is particularly helpful for sites hosted on shared web hosting without SSH access, enabling seamless use of Laravel Artisan command features.

🚀 Features

Run Artisan Commands: Execute any Laravel Artisan command via a simple web interface.

Common Commands Dropdown: Quickly select from a list of frequently used commands.

Instant Action Buttons: One-click buttons for generating models, controllers, middleware, seeders, and factories.

Command History: View a detailed log of executed commands with their outputs.

Confirmation Prompts: Safe command execution with SweetAlert2 confirmation dialogs.

Responsive Design: Built with Tailwind CSS for a modern, responsive UI.

AJAX-Powered: Seamlessly run commands and update the UI without page reloads.

https://redd.it/1oj265a
@r_php
Is AI actually helpful in PHP coding if the generated code doesn’t match exactly what we need?

I’ve been experimenting with AI tools for PHP development. Sometimes the AI-written code looks correct but doesn’t work as expected or needs heavy tweaking.

Has anyone here found consistent ways to make AI output more accurate for real-world PHP projects?

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