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 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
how does a function get undefined?

there is a weird thing going on? if i do if(!in_array($_SERVER["SCRIPT_FILENAME"],get_included_files())){/*your methods*/} in my head the methods within the very same noscript should already be defined. but they aren't, any reason why this is happening?

https://redd.it/1pgdeta
@r_php
Why there isn't a Discord?

Hi everyone, I know it's a silly question, but I'd like to ask why there isn't a Symfony Discord server.
I mean, I know Slack exists, but I think it's easier for any user to connect with the Symfony community through a Discord server. Does anyone know why there isn't an official server? I'd be very tempted to create one, obviously not to manage it entirely myself, but simply to provide an opportunity for users who perhaps don't know what Slack is or how to use it, to connect with the Symfony community and ask for support and more quickly and easily, especially since everyone knows Discord. What do you think?

https://redd.it/1pgeo94
@r_php
Weekly /r/Laravel Help Thread

Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips:

What steps have you taken so far?
What have you tried from the documentation?
Did you provide any error messages you are getting?
Are you able to provide instructions to replicate the issue?
Did you provide a code example?
Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly.

For more immediate support, you can ask in the official Laravel Discord.

Thanks and welcome to the r/Laravel community!

https://redd.it/1pgoukp
@r_php
Yii Database abstraction 2.0

The second major version of Yii Database abstraction was released. The package is framework agnostic and thus can be used with any framework or without one. Supported databases are MSSQL, MySQL, MariaDB, Oracle, PostgreSQL, and SQLite. As usual with Yii3 packages, all the code is totally covered in types and the unit tests and has a high mutation testing score.


New Features

\- Implement ColumnInterface classes according to the data type of database table columns for type casting performance.

\- ConnectionProvider for connection management

\- ColumnBuilder for column creation

\- CaseX expression for CASE\-WHEN\-THEN\-ELSE statements

\- New conditions: All, None, ArrayOverlaps, JsonOverlaps

\- PHP backed enums support

\- User-defined type casting

\- ServerInfoInterface and its implementation



Enhancements

\- Optimized SQL generation and query building

\- Improved type safety with psalm annotations

\- Method chaining for column classes

\- Better exception messages

\- Refactored core components for better maintainability

\- PHP 8.5 support


https://github.com/yiisoft/db

https://redd.it/1pgsl08
@r_php
How are you managing Stripe subnoscriptions & plans inside Laravel?

I’m working on a new Laravel app and once again running into my usual pain point: managing Stripe subnoscription plans from inside my own admin panel instead of relying only on env files + the Stripe dashboard.

I’m curious how others are handling this in real projects:

Do you create/manage products and prices directly from your Laravel admin?
Are you storing plans in the database and syncing to Stripe?
How do you handle discounts, promos, and free trials in a clean way?
Any patterns that didn’t work well for you?

Not looking for a full tutorial—just want to see real-world approaches and tradeoffs. Screenshots, code snippets, or repo links are welcome if you’re willing to share.

https://redd.it/1ph1jgi
@r_php
Weekly Ask Anything Thread

Feel free to ask any questions you think may not warrant a post. Asking for help here is also fine.

https://redd.it/1ph2xsd
@r_php
Weekly help thread

Hey there!

This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!

https://redd.it/1ph5x52
@r_php
soo the thing i anticipate the most has been asleep for 3 months. is it finished and just waiting for juicy release date? what do you think?
https://redd.it/1ph76g5
@r_php
[Research] Tool to Trace Model and Event Usage in Laravel Projects

I'm working on a tool that shows how models get used in a Laravel project, but in a way normal users can understand. Kind of like PhpStorm’s "find usages", but shown in a simple dashboard for managers or anyone who isn't deep into the code

The idea is that you click a model or a method and see the path of what touches it: `action → controller → route`. I want to do the same for listeners, jobs, events, and anything else that runs when something happens in the app

Basically I want to answer things like:

* what happens when a user gets created
* which listeners run when a user is updated
* which jobs fire when a post is created

I'm trying to figure out if this would be useful for others as an open-source tool. You would import your Laravel project into it and get all these insights about what cals what and what runs when things happen

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