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
We are modernizing the i18n workflow for PHP, what are your thoughts?

Hi everyone, we are currently developing a new SDK for i18n in PHP. I know what you are thinking, existing solutions like gettext are great, but... I believe PHP deserves more modern features.

The main idea is to let frontend and backend work together in a fashion mainly utilized in modern JS frameworks like next.js, where data is hydrated on the frontend. This means that data can be encoded in the backend and decoded on the frontend which could enable advanced features like In-context editor (edit translations directly on the rendered page), something PHP i18n lacks today.

What we've done so far:
- Everything from gettext, pluralization, variables etc.
- Language detection, cookie, headers, meta data, query params etc.
- In-context editing - Let your contributors edit rendered translations directly on the site.
- Automatic rerender on locale change. (With or without page reload)
- Support for both static translation files in your project, or offloading to our CDN powered by Cloudflare. If you use the CDN, a translations edit will never force you to redeploy any code.
- If CDN is used, we utilize a local cache with SWR to always have the latest translations without compromising speed.
- Lazy loading, only load languages needed.
- If you are using our external platform you'd get glossary, tasks, AI translations, screenshots and much more. But I want to stress that this is optional.
- (Optional language picker)

Do you have any other ideas or input on what would be helpful in the localization process?

Disclaimer: I am the founder of sejhey.com, a localization platform.

https://redd.it/1n8l303
@r_php
Which to use? PHP version 8.2, 8.3, 8.4, 8.5?

I'm new to this and this is kind of a silly question but I am curious? What's the benefit of using 8.2 or 8.3 even though newer 8.5 has come out? and Do I have to keep changing my PHP version for my projects as newer version roll out?

https://redd.it/1n8xc9t
@r_php
Blasp v3 is here! 🎉

Hey Laravel devs! Almost a year ago I threw together a profanity filter package over a weekend and shared it here. The feedback was amazing!

Since then it's hit **76K downloads** (still can't believe it) and I've been working on v3 with some killer features:

* **Method chaining**: `Blasp::spanish()->check()` \- so much cleaner!
* **Multi-language support**: English, Spanish, German, French with proper character handling
* **All languages mode**: Check against everything at once with `allLanguages()`
* **60% faster** with better caching
* **100% backward compatible** \- your existing code still works

The multi-language stuff was the most requested feature, and the performance improvements are pretty sweet too.

Still free, still MIT licensed. Would love your feedback!

GitHub: [https://github.com/Blaspsoft/blasp/tree/blasp-v3](https://github.com/Blaspsoft/blasp/tree/blasp-v3)

https://preview.redd.it/lu2wkc0jsbnf1.png?width=1750&format=png&auto=webp&s=13dc058253ef9cc45758fb22d90820c1f5a5183b




https://redd.it/1n91vmt
@r_php
Updating React version in Laravel + Inertia project

Hello all

I'm just starting a new project using Laravel with Inertia which I have done with Vue many times but my new client has specifically asked for React. I'm wondering how easy and straightforward it is to update the React version as the product is maintained going forward and wondered if anyone had any real world experience in doing this? I've had previous horrendous nightmare experiences upgrading React versions in projects (particularly React Native) so would be interested in hearing the thoughts of others. I've tried to search for information/past experiences but can't find any.

Just to be clear, this is regarding upgrading to a new version of React within an Inertia project, not upgrading Inertia itself.


Thanks all!

https://redd.it/1n90ccp
@r_php
any recommendation for (Websites) for learning PHP/web development in general for beginners?

w3schools was always an option but always find people complaining (it is not bad to be honest)

i tried youtube videos but it's not for me...also there is nearly no (up to date PHP 8 course)

what do you recommend for beginners...(not absolute beginner) but a good learning foundation.

https://redd.it/1n9inyt
@r_php
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