PHP Reddit – Telegram
PHP Reddit
34 subscribers
289 photos
37 videos
24.8K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Mturk hit catcher

I need a person who develops robust hit catcher for my use case in mturk platform.

https://redd.it/1n9qsqx
@r_php
Queuing time-consuming tasks asynchronously using Symfony Messenger in a Mezzio middleware application

Tasks that require long execution times are sometimes unavoidable. Dotkernel has its own Queue component that is based on Symfony Messenger. It's an opinionated component that is still growing based on requirements in the field.

What features do you think are vital for queuing?

How do you use asynchronous execution in your projects?

https://www.dotkernel.com/headless-platform/dotkernel-queue-asynchronous-execution-in-dotkernel-headless-platform/

https://redd.it/1n9zopt
@r_php
Is there a hub for showcasing open-source projects?

Hello devs,

Is there a website where developers can share their Laravel open-source projects and engage more with the Laravel community?

I was thinking something like "Product Hunt" but for Laravel projects.

Does something like this exists?

https://redd.it/1na715z
@r_php
What is current market for PHP developers? What is the average salary?

Hi,

A friend of mine is getting into full-stack development and learning PHP and Laravel, what's the market rn? Is it good vs TypeScript/Next.js?! Or even Python, I want to see people who are employed here and what's the salary range?

https://redd.it/1nan02b
@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/1nayitw
@r_php
PHPCS and PHPCBF disagree

Hello guys. I'm using phpcs to scan for code quality issues. It reported LOTS of CQ errors stating PHPCBF could fix them. I ran PHPCBF and indeed a bunch of them were fixed. However there still LOTS of ERRORS unfixed (and PHPCS says they are fixable with PHPCBF). Any clues on this one?

https://redd.it/1nb0qlb
@r_php
Using Grafana with Laravel

TLDR: I'd love to hear if and how you use Grafana and/or other Grafana OSS products (Prometheus, Loki, Alloy, Tempo) with your Laravel applications or business. Please share your experience and any tips!

I'm getting ready to give a presentation on integrating Grafana with Laravel applications. I've been exploring the entire observability stack—Prometheus for metrics, Loki for logs, Tempo for traces—and it's been a game-changer for monitoring app performance. I've found some cool ways to visualize server and application metrics, but I'm curious to hear from others in the community. If you've used Grafana or any of its OSS products with your Laravel projects, how has it impacted your workflow? What's your favorite part about using them?

https://redd.it/1nb655w
@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/1nbcxrc
@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/1nbfvfb
@r_php
Automatic translations in Laravel apps... would you trust AI?

Don’t know about you. Tell me if it rings true:

Client: “We need it multi-language.”
Dev: “Are you sure? That means adding and editing content in all languages, every time.”
Client: “Yeah, yeah, no problem.”

Fast-forward 3 months… the app is a messy mix of half-translated content. Customers are confused, the brand looks sloppy.... everyone’s unhappy.



That’s been my experience with most multi-language apps. The tech part is easy (hello there spatie/laravel-translatable, backpack/crud, etc). The maintenance? Not so much. Admins get busy or lazy. Entries go untranslated.

So I asked myself: what if AI handled all of the translation… automatically? 👀 Imagine this: every time an admin creates or edits an entry, it gets translated by AI into 2, 5, even 10 languages. AI does the heavy lifting. No human bottleneck.

Turns out… it actually freakin' works! Like, really well! It took a lot of trial-and-error... been testing different models, prompts, chunking strategies for months — but the results are now surprisingly solid!

I've finished the two key features:
• backfilling missing translations in the DB;
• automatic translation whenever entries are added or updated;

Put together, you get:
• ZERO admin effort, when making an app multi-lingual;
• ZERO admin effort when adding / editing entries;
• Customers always see a properly translated app.

Don't believe me? Here’s a rough demo video, where I show it in action: https://www.loom.com/share/6a641c7e4e424070ab9ddbecd1edd637?sid=da3a39e8-ca92-4ccc-979f-79487815b14d



I’ve packaged this up and I’m rolling it out for 6 clients right now. But I’d love your feedback:

1. Would you trust AI to handle production translations automatically?

2. Would you/your clients pay for this — and if so, would you prefer a Composer package to hook up to your own model... or a hosted service?

3. Anything I'm missing here? Why isn't everybody doing this?

Appreciate your 2¢ 🙏

https://redd.it/1nbh4yj
@r_php
What are the best practices for optimizing PHP code to improve website speed and performance?



https://redd.it/1nbjgev
@r_php
Laravel react started kit, seems has changed, not sure when and what to do

inside every react component we used to call a web Route like this route(...)

but this time it seems things has changed

I have noticed a new folders

https://preview.redd.it/20cp2aym4znf1.png?width=297&format=png&auto=webp&s=cfb5db77b4e075b03677ad2125de6880e2e010a4

and here is a sample of a login route

https://preview.redd.it/texmr1tt4znf1.png?width=642&format=png&auto=webp&s=3010e80cc549d4a239f4f7a2a1b967db92a4f12f


what do you think of this approach, will it be good during scale,

and is there any docs for it, and what do we even name this approach



https://redd.it/1nbtqcz
@r_php
PhpStorm setup for Laravel

Hello everyone,

I am curious how you guys solve the code formatting throughout php, blade and js files.

I am trying to get a common ground between all developers and also enforce all code formatting rules via a github action.

I have tried many configurations, but none of them work in the same way for both CI and local, e.g. npx prettier output is different than the phpstorm auto format.

Also laravel pint (in ci env) is different than local format (in phpstorm).


If you have any suggestions or guides to fully setup phpstorm and a gituhub action, please feel free to drop it here :)


Thanks!

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