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
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
Symfony app and DigitalOcean, /icons folder 404

Hello,
I have weird problem.
After deploying on digitalocean and setting apache files.

I get 404 error for loading /icons/ and everything from it.

I tried /css, /js and other folders and it works.
In vhosts document root is set for /public.
When I check content of folder /icons all is there and i have right permissions

Locally it works.

I cannot access with url: /icons something it gives 404 not found

Any help is appreciated

https://redd.it/1klqs3s
@r_php
how do I secure an admin page for me to use for my own website?

I recently created a website and I am getting tired of manually inserting data using phpadmin. I am planning on creating an admin page for me to use to easily insert data etc. My question is how would I go about that to where I shouldn't face any security issues?

should I just create a website.com/admin type of link? im a newb self learning. help 💀

https://redd.it/1km6zan
@r_php
how do you keep your PHP code clean and maintainable?


i’ve noticed that as my PHP projects get bigger, things start to get harder to follow. small fixes turn into messy patches and the codebase gets harder to manage.
what do you do to keep your code clean over time? any tips on structure, naming, or tools that help with maintainability?

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