r_php | Unsorted

Telegram-канал r_php - PHP Reddit

33

Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram

Subscribe to a channel

PHP Reddit

New PostgreSQL Client/Parser/QueryBuilder library

Hey everyone!
I would like to share our recent addition to Flow PHP framework, a brand new PostgreSQL library based on ext-pgsql and pganalyze/libpg_query

Doctrine DBAL is awesome! But since it's database engine agnostic, it's missing some nice features like for example, query builder is not covering all db specific features like CTE.

This makes us to either keep SQL queries as plain strings, or make some tradeoffs while using Query Builder, flow-php/postgresql covers this gap providing probably the most advanced query builder in PHP.
Our fluent interfaces are going to guide you (with support from your IDE) through building queries.

But it's not all, thanks to libpg_query we were able to create a postgresql parser that covers 100% of syntax since it's literally extracted from the server code 🤯 (full support up to PostgreSQL 17)

Why do we need a parser?

\- query analysis (security but also static analysis)
\- we can programmatically access/modify queries - like for example add advanced pagination

And if non of this sounds appealing, thanks to parser and deparser flow-php/postgresql comes also with query formatter - just like php-cs-fixer or mago formatter but for sql queries!

On top of that we also created Client interface with a default implementation based on ext-pgsql that comes with a support for Row Mappers (an interface). Our plan is to provide bridges for libraries like cuyz/valinor or crell/serde that will let us make queries results strictly typed through:

$client->fetchInto(User::class, "SELECT * FROM users WHERE id = $2, [10001\]);

You can find library documentation here: https://flow-php.com/documentation/components/libs/postgresql/

It's still early development, not battle tested yet, feedback/bug reports/ideas are greatly appreciated and welcome 😊

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

Читать полностью…

PHP Reddit

Career Changer Strategy: Focusing on Backend/Logic & using AI for UI/Design. Is this a future-proof path for freelancing?

Hi everyone,

I am currently a career changer ("Umschüler" in Germany) doing my internship at an E-Commerce agency. I'm building my roadmap for a future mix of part-time employment and freelancing.

I realized I love the logical side of things (Databases, Backend, Docker, JS-Functionality) but I hate "pixel-pushing" and trying to pick the perfect colors
.
My Plan:
The Stack: HTML, CSS, JS, PHP, MySQL, Docker. (I plan to learn React/Frameworks later, but want to master the basics first).

The Workflow: I use AI to handle the "Design" part (CSS, Layouts, UI components). I understand the generated code (Grid, Flexbox, Responsive), so I can debug it, but I don't want to study design theory.

The Product: I want to move away from "Brochure Websites" (high competition, low pay) and focus on building Web Apps, PWAs, and B2B Tools for small/mid-sized businesses. I feel like solving actual business problems (saving time/money) pays better than just "looking good".

My Questions for you:
Is this a solid Freelance strategy? Can I market myself as a Fullstack Dev if I rely on AI for the visual heavy lifting, while I ensure the Logic/Security/Backend is rock solid?
PHP vs Node: In the German market, I see a lot of demand for PHP (Shopware, custom tools) in the SMB sector. Is sticking with PHP + Docker a safe bet for stable income, or is the pressure to switch to Node.js unavoidable?

Future Proofing: Do you agree that "Logic/Problem Solving" is harder to replace by AI than "CSS/Design", making this path safer long-term?

Thanks for your honest feedback!

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

Читать полностью…

PHP Reddit

I built a Laravel installer because shared hosting setup is still painfu

Laravel is great, but the first 30 minutes still suck — especially on shared hosting.



.env issues, DB config errors, missing extensions, wrong permissions…

I kept seeing the same problems again and again.



So I built an open-source Laravel installer that:

\- checks server requirements

\- validates DB credentials

\- guides setup through a simple installer UI

\- works without assuming full CLI access



It’s still early and I’m looking for real feedback more than stars.



Repo: https://github.com/ajithjojo/getecz-laravel-installer



What would you change or add?

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

Читать полностью…

PHP Reddit

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 Reddit

Symfony 7.4/8.0 : New Features
https://youtu.be/V8NY-6No5DM?si=f3wJhKlkcfIzSnOS

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

Laravel + Filament: Why It's the Perfect Combo for Admin Interfaces
https://redd.it/1pe137w
@r_php

Читать полностью…

PHP Reddit

PHP 8.5 benchmarks: PHP performance across major CMSs and frameworks
https://kinsta.com/blog/php-benchmarks/

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

Читать полностью…

PHP Reddit

🔱 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

Читать полностью…

PHP Reddit

Laravel Telescope - Debug locally like a pro
https://youtu.be/ribLN3pRyQc

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

Читать полностью…

PHP Reddit

Laravel's Route "Model" Binding | ollieread - PHP and Laravel expert
https://ollieread.com/articles/laravels-route-model-binding

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

Читать полностью…

PHP Reddit

SymfonyCon Amsterdam 2025: Relive the Magic of SymfonyCon Amsterdam 2025
https://symfony.com/blog/symfonycon-amsterdam-2025-relive-the-magic-of-symfonycon-amsterdam-2025?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

Cloudflare Vectorize driver for Laravel Scout

I've created a Scout driver for Cloudflare Vectorize vector databases. It's more a proof of concept at the moment, although it is functional - if you're looking for symantic search, Vectorize is a neat way to deliver it.

You can find it here https://github.com/brynj-digital/laravel-scout-vectorize

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

Читать полностью…

PHP Reddit

Looking for a PHP script that can timeline email correspondence between people

Hi all

I’m looking for a PHP script that can potentially log into an IMAP email Box and read and process these emails (any unread emails) and strip attachments.

Catalogue them into a database and generate a timeline of the correspondence

There may be multiple people involved in this same email chain

Alternatively I’m also looking for a EML file viewer with browser support?

Thanks!

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

Читать полностью…

PHP Reddit

Pennant - Release features with confidence
https://youtu.be/prwQQJIclu8

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

Читать полностью…

PHP Reddit

Honest opinion about devpdf
http://devpdf.in

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

Читать полностью…

PHP Reddit

Socialite - Effortless Social Authentication
https://youtu.be/JKOJpUi1gD0

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

Читать полностью…

PHP Reddit

Curious: How does your team test feature branches before merging to dev/staging?

I'm working on a Laravel project with a separate React frontend and we've been struggling with how to let the team (and clients) test features before they hit staging.

Right now we either deploy to a shared staging server (messy, conflicts) or run everything locally to demo (painful for non-technical stakeholders).

Curious how other teams handle this:

* Do you spin up environments per branch/PR?
* If yes, what's your setup? (Docker, k8s, some service?)
* If no, what do you do instead?

Especially interested if you're dealing with microservices or separate frontend/backend repos.

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

Laravel Pail - Real-time logs in your terminal
https://youtu.be/Z532EsfxoOA

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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

Next Stop: SymfonyCon Warsaw 2026 ✈️
https://symfony.com/blog/next-stop-symfonycon-warsaw-2026?utm_medium=feed&utm_source=Symfony%20Blog%20Feed

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

Читать полностью…

PHP Reddit

🔱 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

Читать полностью…

PHP Reddit

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

Читать полностью…

PHP Reddit

Pause and resume queue workers in Laravel
https://nabilhassen.com/laravel-pause-resume-queues

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

Читать полностью…

PHP Reddit

Swoole or Go for this specific use case

I have a certain part of my ecommerce website builder SaaS that I'm rewriting from regular PHP. Basically it's a page builder like Shopify's page builder. It allows people to customize sections, which are in turn written in a custom templating language and have reflection built-in to expose customization options inside the page builder per-section and per-block. It also has a live preview that shows the changes made in real-time.

The template interpreter is written in Rust and it also handles the user-facing side of people's websites, while the admin panel is PHP. So the theme builder backend will basically have to ask the Rust process to re-interpret the preview and return the HTML on every change, probably through a socket connection.

There are several reasons for the rewrite apart from speed - the codebase a mess from 3 years of feature additions, removals and just using less-than-optimal logic for many things. and also keeping it as part of the admin panel rather than on a separate domain means if something happens to it or if there's a traffic surge it affects the whole admin panel's performance (the rest of the admin panel is still PHP and I don't plan on migrating).

I love PHP - I think it's probably the most flexible language out there and I wouldn't have been able to make my platform as powerful as it is right now in any other language. I've been using it for 8+ years and it's still my favourite language. However I've never used Swoole or Go (though I have used some Roadrunner) so I was wondering if I should go for Swoole or with Go for this project. Does Swoole have any advantages other than a familiar syntax?

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

Читать полностью…

PHP Reddit

Leveraging Promises and HTTP Pooling
https://cosmastech.com/2025/12/01/request-pooling-pattern.html

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

Читать полностью…

PHP Reddit

[RFC] Type Aliases
https://wiki.php.net/rfc/typed-aliases

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

Читать полностью…

PHP Reddit

Laravel Prompts - Beautiful CLI interfaces for everyone!
https://youtu.be/vGYX07v6ygQ

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

Читать полностью…

PHP Reddit

UUID data type. Generated on database side or in code, on PHP side ?

Since Mariadb 10.7, there is the UUID data type available.

In Postgres, UUID data type was available since forever.

Now , my dilemma is: if I want to use in my project UUID data type, should i:

1. generate the uuid on PHP side, using Ramsey's library and insert it in a uuid data type column ?

OR

2. count on database engine to autogenerate an uuid ?

Option #1 have the advantage that Doctrine is ok with it , and I do not need to care if the database can generate an uuid_v4 or uuid_v7.

Option #2 have the advantage that it reduces the CPU cycles of PHP code and move the burden of generating the uuid on database side .

What do you think would be the better options and why ?

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

Читать полностью…
Subscribe to a channel