PHP Reddit – Telegram
PHP Reddit
34 subscribers
291 photos
37 videos
24.9K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
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/1kkiltm
@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/1kklata
@r_php
MVC versus Middleware

What is the opinion related to middleware architecture : single action handlers versus controllers ?

Did somebody use middleware architecture ?

PSR-7 and PSR-15 ?

https://redd.it/1kkoomx
@r_php
How do you handle business logic running on millions of records in php?

Do you use PHP for UI then have business logic in backend SQL or C or some other processing layer? do you have time out limits on log running processes?

Or is this a non-issue because the system never gets large enough to worry about processing so many records?

I considered whether to use records or objects or classes or "big data" but I wanted to keep the noscript simple meaning data that you create using PHP/Laravel/ORM/Symphony etc - not something that you are importing.

https://redd.it/1kksq3x
@r_php
I've created a Laravel package for service facades

I know this might be very surprising, since Laravel invented the service facades. So why?

The answer is quite simple: portability. Imagine if you could use the same service facades in your PHP applications, regardless of the framework you're using. A la PSR, I would say.

The base classes for service facades are defined here: https://github.com/lagdo/facades.

The following packages are currently available:

Symfony: [https://github.com/lagdo/symfony-facades](https://github.com/lagdo/symfony-facades)
Laravel (yes): https://github.com/lagdo/laravel-facades
CakePHP: [https://github.com/lagdo/cake-facades](https://github.com/lagdo/cake-facades)
Yii: https://github.com/lagdo/yii-facades

It is easy to support other frameworks or applications, since the library only needs to be provided with a PSR-11 container.

https://redd.it/1kkxp75
@r_php
Built an outfit suggestion engine with Laravel + Vue — discussing SSR, SEO, and structure decisions

Hey Laravel devs 👋

I recently launched [CloveMix.in](http://clovemix.in/?utm_source=reddit&utm_medium=subreddit&utm_campaign=laravel), a fashion app that recommends full outfit combinations instead of just products — with the core stack being **Laravel + Inertia + Vue 3**.

As someone navigating both SEO and UX at the same time, I wanted to open up a discussion on some architectural decisions that might be helpful (or debatable):

* **SEO with Inertia**: I used server-rendered meta tags via Laravel Blade + Inertia's `<Head />` component. What are your best practices for indexing with this stack?
* **Sitemap & robots.txt**: Dynamically generating URLs for product + outfit pages — curious if anyone else here automated image indexing via sitemap XML?
* **JSON-LD structured data**: Anyone submitting structured product or catalog data directly to Google via Search Console? Results?

I'm happy to share my sitemap, robots.txt, and SEO setup if helpful to others building SPAs with Laravel backends.

Would love to hear what tools, packages, or strategies you use when balancing dynamic frontend experiences with SEO for discovery.

https://redd.it/1kl2rm6
@r_php
Version 1.2.0 of Laravel Mux package released

I’ve just released version 1.2.0 of my Laravel package for Mux, which adds an easy-to-use Blade component for showing videos via a Mux Player instance. Check out the release here: https://github.com/martinbean/mux-php-laravel/tree/1.2.0

For those not familiar with Mux, it’s essentially the “Stripe of video”. It makes creating video-based applications incredibly easy by offering APIs to upload, transcode, and securely and cost-effectively deliver video content. You can find out more about Mux, and their products and services at https://www.mux.com

https://redd.it/1kl4nty
@r_php
Website Remote desktop

Have a question, it's there some way to mirror my desktop to my website?

I mean, remote desktop, but with no app, just using HTML, or Java... and upload it to my host/website and link it to my domain.

As screen mirror, but website version. Is it possible?

https://redd.it/1klhdc4
@r_php
Where do you guys find jobs to apply for?

I'm based in Europe, Romania specifically.

The last time I searched for a job was about 5 years ago. Now I find myself searching for one again. And oh boy things have changed. My usual strategy was to set "Open to work" on linkedin and somebody contacted me within a day or two.

I did the same thing, and yes people have contacted me but the salary ranges are low balls at best. I got a single good range and(as it goes) I haven't heard back from them.

I know the market's in the shitter right now but I'll admit I didn't expect it would be this terrible.

For my fellow EU folks, got any tips?

https://redd.it/1kli597
@r_php
How I Built a Modular Laravel CRM: Architecture Insights
https://redd.it/1kli44f
@r_php
I have an interview tomorrow. The company I'm interviewing for is using Symfony. I haven't used Symfony in close to 5 years. Tips?

Pretty much noscript. I'm currently using Laravel and no framework(back and forth between the 2) at my current job.

What questions can I expect? I would assume the most used parts of Symfony would be a good guess: Doctrine, forms maybe(shudder), caching maybe, tests I would guess.

I want to at least read the docs, but clearly I can't read it all by tomorrow so I want to be strategic about it.

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