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
PHP date function changed?

I might have missed something, but PHP's date function has changed.

PHP 8.1> echo date("Ymd", false) = 19691231
PHP 8.3> echo date("Ymd", false) = 19700101

What changed? Why? Was it announced?

EDIT:

PHP 8.1 is on Ubuntu 22.04
PHP 8.3 is on Ubuntu 24.04

Same timezones on both boxes.

https://redd.it/1pdg8lc
@r_php
🔱 Seaman Beta - Development environment manager for Symfony

I am building **Seaman**, a Docker development environment manager for Symfony 7+ inspired by Laravel Sail.

Features:

* Interactive setup with smart project detection
* PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, RabbitMQ, etc.
* Xdebug toggle without restarts
* DevContainers support
* Single PHAR, easy install

⚠️ Beta status - There may be bugs! Barely tested on Linux/macOS, Windows needs testing. A lot of bugs may appear; please be merciful, this is a work in progress.

For more information and documentation, please refer to the GitHub repo:

[https://github.com/diego-ninja/seaman](https://github.com/diego-ninja/seaman)

Comments, ideas, contributions, testers, and GitHub 🌟 are always welcome.

Made with ❤️ for Symfony in my free time. Hope you find it useful!

https://redd.it/1pdgwj7
@r_php
🔱 Seaman Beta - Development environment manager for Symfony

I am building **Seaman**, a Docker development environment manager for Symfony 7+ inspired by Laravel Sail.

Features:

* Interactive setup with smart project detection
* PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, RabbitMQ, etc.
* Xdebug toggle without restarts
* DevContainers support
* Single PHAR, easy install

⚠️ Beta status - There may be bugs! Barely tested on Linux/macOS, Windows needs testing. A lot of bugs may appear; please be merciful, this is a work in progress.

For more information and documentation, please refer to the GitHub repo:

[https://github.com/diego-ninja/seaman](https://github.com/diego-ninja/seaman)

Comments, ideas, contributions, testers, and GitHub 🌟 are always welcome.

Made with ❤️ for Symfony in my free time. Hope you find it useful!

https://redd.it/1pdgvro
@r_php
Laravel + Filament: Why It's the Perfect Combo for Admin Interfaces
https://redd.it/1pe137w
@r_php
How are people using Laravel Horizon with EC2 IAM roles? (Credentials expire every 6h)

Hi all,

I’m running Laravel applications on EC2. Some are bare-metal, some are Dockerized. I’m trying to eliminate static AWS keys and move entirely to **EC2 instance roles**, which provide short-lived temporary credentials via IMDS.

The problem:
**Laravel Horizon uses long-running PHP workers**, and the AWS SDK only loads IAM role credentials once at worker startup. When the STS credentials expire (every \~6 hours), S3 calls start failing. Restarting Horizon fixes it because the workers reload fresh credentials.

I originally assumed this was a Docker networking problem (container → IMDS), so I built a small IMDSv2 proxy sidecar. But the real issue is that **Horizon workers don’t refresh AWS clients**, even if the credentials change.

Right now my workaround is:
**A cron job that restarts Horizon every 6 hours.**
It works, but it feels wrong because it can break running jobs.

My questions:

* How do other teams manage Horizon + IAM roles?
* Do people really rebuild the S3 client per job?
* Do you override `Storage::disk('s3')` to force new credentials?
* Is there a recommended pattern for refreshing AWS clients in queue workers?
* Or is the real answer: “Just use static keys for Horizon workers”?

This feels like a problem almost anyone using Horizon + EC2 IAM roles must have run into, so I’m curious what patterns others are using in production. Thanks!

https://redd.it/1pe5fvw
@r_php
Looking for maintainers for open source PHP Libraries, HTTPful and Commando

Hello,

I'm the author of two PHP libraries that had a small following. I've been poor about maintaining them over the years as my priorities, career, and life have changed. The libraries still have users despite the neglect. HTTPful has about 16M installs and several hundred dependents on Packagist. Seeing that there is still a user base, I'd like to find potential maintainers for the projects if there is interest. Could be a good opportunity for someone looking to get involved in Open Source.

At the same time, I'm also keenly aware of the supply chain risks associated with handing over packages to strangers on the internet, so this would likely be a transition process to build a little trust.

Feel free to DM me if you are interested. I will likely start to deprecate these officially rather than letting the debt pile up if I don't locate a maintainer.


https://github.com/nategood/httpful \- Lightweight alternative to the Guzzle's of the world for managing HTTP requests. 1800 Stars on GH.

https://github.com/nategood/commando \- Simple library for making CLI apps in PHP. 800 Stars on GH.

https://redd.it/1pe836e
@r_php
Building AI Agents in PHP Just Got 10x Easier Neuron AI Review

Yesterday I discovered a great package which can be almost considered as a framework for building AI based applications.

https://youtu.be/J1l2rBLT8QU

Prism php exist. But this one has a lot more things like memory, rag related things like data loader, text splitter and many more things.

Almost like how Langchain has a lot of things required for building AI based applications.

https://redd.it/1peifap
@r_php
Sulu 3.0 release: New content storage and performance boost
https://sulu.io/blog/sulu-3-0-released

https://redd.it/1petkrb
@r_php
Php laravel

Suggest php laravel playlists/onee short/project youtube videos. My internship is starting in 2 weeks and i want to learn phpfrom beginner to advanced.

https://redd.it/1pf9yqn
@r_php
Spiral text utility

Not sure if this is appropriate but I came up with a little utility for printing text elements that spiral out from a central point

https://github.com/mrmcflute/spiralString

It's really just an idea and thought that maybe it might be useful to someone.

https://redd.it/1pg2i0q
@r_php
Is it worth using functional programming in PHP?

Sorry if the question seems lazy, and strongly opinion based, but thats what I want to know from more experienced developers.
I'm a junior dev trying to improve as a developer and trying to apply new things in my job that consists of maintaining good old legacy procedural php in an small company.
Php seems to be implementing plenty of functional programming quality of life features lately, and maybe this could be a good oportunity to try to learn and experience functional programming.
I feel like learning it could help making the code more testable and it would be easier to implement FP than OOP in this codebase.
What do you guys think?

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