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
Rethinking Laravel Folder Structure for a Modular Monolith

Hi 👋

I’m starting a relatively large roject and exploring a non-default folder structure that leans into the modular monolith approach. Here’s the structure I’m considering:

- App/Apps/{Admin, API, Console} - for the sub-applications of the project
- App/Modules/…/{Http, Models, Jobs, …} - Laravel style application as a module
- App/Configuration/{Providers, Bootstrapers} - different setup and configuration
- App/Shared - shared components and helpers

What do you think about it? Any comments or feedback?

Thanks!

https://redd.it/1kmqrsm
@r_php
Tonight: Q&A with Juliette Reinders Folmer (PHPCodeSniffer) in Amsterdam (Meetup)

Just a quick heads-up for anyone in or around Amsterdam (NL), tonight there’s a PHP meetup featuring **Juliette Reinders Folmer**, the person behind **PHP\
CodeSniffer.

It’s an interactive “ask me anything”-style session, so a great chance to ask your PHPCS questions live and get demos on the spot. Whether you're wondering how to run PHPCS only on changed files, create a custom ruleset, or you're just curious what's coming in version 4.0, bring your questions.

🕖 Schedule

19:00 – Doors open
19:30 – Talk starts
20:30 – Raffles & announcements
20:45 – Social, food & drinks

📍 Location: Simplicate, Hullenbergweg 135, Amsterdam

If you're into PHP or just want to meet other devs, feel free to swing by. RSVP here:

https://www.meetup.com/amsterdamphp/events/307306472/

Hope to see some of you there!

https://redd.it/1kn5vuq
@r_php
What's your favorite PHP ecommerce platform?

We're a footy fan website and the software we use to run our forum is ditching support for selling physical goods, just keeping subs.

I've set up a few to evaluate, one I ditched because they seemed to be pivoting to selling NFTs, Sylius and Prestashop so far, but I'm on the lookout for more.

I have a few constraints that I'm working with.

1. It has to be self hosted.
2. It has to have OAuth login that works with the forum (Invision)
3. Easy to style.

Prestashop unfortunately fell down by not having easy OAuth2 for anything other than Facebook & other social platforms, I need my users to use the login from our forum.

Sylius has that, but the templating on v2 is taking a bit to get my head around, I want to change the colour of the header but it uses a Tailwind `bg-black` class so I have to override the whole template/hook to do it, which looks like it also overrides all the other hooks in that section? I'm struggling to get my head round it at the moment, it feels like I'm missing a vitial bit of info that will make it snap in to place :-)

https://redd.it/1knc3o4
@r_php
Anyone hosting a multi-tenant app on Laravel Cloud?

I wish to know if anyone is hosting a multi-tenant application on Laravel. Our current application uses Caddy server to handle all the subdomains and automatic https. I'm wondering if I can migrate the setup to Laravel Cloud.

https://redd.it/1knqw1r
@r_php
TrueReviewer – A Robust and Customizable Product Review Package for Laravel

Hello coders,

I'm LakM, the creator of the [commenter](https://github.com/Lakshan-Madushanka/laravel-comments) package. I noticed that a modern product review package is something the Laravel community currently lacks. While building your own solution might work for a couple of projects, in the long term, we need something reusable and maintainable to save development time. That’s why I created **TrueReviewer**.

TrueReviewer is a robust review and rating system tailored for Laravel applications, featuring five thoughtfully designed components that enhance user experience. With a **modern**, **responsive design** and **customizable options**, TrueReviewer allows you to integrate reviews seamlessly into your application. The system is API-agnostic, ensuring compatibility with various platforms. TrueReviewer not only helps build trust and credibility through positive reviews but also boosts customer engagement and improves online visibility. With advanced features like dynamic sub-ratings, interactive statistics, and a comprehensive review list, TrueReviewer is the ultimate solution for managing user feedback.

TrueReviewer is **API agnostic** which means the front-end (Vue.js) and back-end are completely decoupled. This gives you the freedom to integrate it into any Laravel project, whether it's a traditional server-side rendered app or a fully separated API-driven architecture using Vue as the front end. Since the Vue components are compiled into JavaScript, it works seamlessly across tech stacks.

**Key Features**

* 📲 Modern, responsive design.
* ⚙️ Highly customizable to suit your preferences.
* 🎨 Theming with free presets and customizable colors.
* 🌐 API-agnostic for seamless integration.
* 🚀 High performance powered by Vue.js and Laravel.
* 🌍 Designed to cater to diverse user needs
* 🎯 Packed with all the essential features
* 🧾 Widget to summarize product reviews effectively
* 📊 Interactive statistics for deeper insights
* 🧩 Dynamic sub-ratings for detailed product evaluation
* 🖼️ Advanced media gallery for an immersive visual experience
* 📜 Comprehensive review list with pagination
* 🧭 Robust filtering options for quick navigation
* 📝 Elegant, user-friendly forms with built-in validation
* 🔐 Enhanced security features for peace of mind
* 🤝 Product recommendation capabilities
* 👍 React to reviews with helpfulness ratings
* 🚩 Ability to report inappropriate reviews
* 🚀 And much more to elevate the review experience!

Currently package is a sponsorware (big thank to calebporzio for the idea) and will be open-source with your support. **Huge discounts are available for first 10 users**.

Any feedback is greatly appreciated!

Demo Video - [https://youtu.be/-NJszz8lnuA](https://youtu.be/-NJszz8lnuA)

Site - truereviewer.netlify.app

https://preview.redd.it/cc5rjw8oz41f1.jpg?width=1280&format=pjpg&auto=webp&s=8a780504788c5cb6021ccd7837b7e233caa9eb41




https://redd.it/1knzlaa
@r_php
Recommend good free headless CMS for PHP e-commerce

Hi, before anyone says that this has been talked over a million times let me defend myself by saying that the results I found so far were very old or related to Next.JS

Please share stories what you use and why. I create frontends myself, but hate Wordpress, so I’m looking for fully headless CMS I could use for building great e-commerce websites. Tried storyblok in the past but it was meh and many workarounds needed to be done to fit for ecommerce use case, because it feels like Storyblok should be used only for blogs or simple webpages that only contain information.

https://redd.it/1ko090a
@r_php
Seperate marking site or all on app?

Hi just wanted to get some feedback, we are building a listing web app in laravel, Inertia and React.

We are wondering if we could build the marketing parts in framer or webflow and have the app on a sub domain.

We're just worried that we will be fighting seo etc with the subdomain if we go this route.

As its a listing site we want the individual profile pages to not be affected by the marketing site.

What would you guys do? There pros and cons for each route, just wanted some feedback, thanks

https://redd.it/1ko5tb8
@r_php
DTO: Pros and Cons of various DTO packages

I want to use DTOs and I am not sure which of the following packages I should use:

* [spatie/laravel-data](https://github.com/spatie/laravel-data)
* [cuyz/valinor](https://github.com/cuyz/valinor)
* [romanzipp/Laravel-DTO](https://github.com/romanzipp/Laravel-DTO)
* [WendellAdriel/laravel-validated-dto](https://github.com/WendellAdriel/laravel-validated-dto)
* [cerbero90/laravel-dto](https://github.com/cerbero90/laravel-dto)
* [YorCreative/Laravel-Argonaut-DTO](https://github.com/YorCreative/Laravel-Argonaut-DTO)
* Any other package anyone knows about

They all seem to have different functionality and I am finding it difficult to make my own comparison.

https://redd.it/1kos1nt
@r_php
Shorten if conditions (or chain)

What is your choice and reason ? I think second one is more concise and performant.

Share if you know a way to shorten and(&&) chain.

if ($role === 'admin' || $role === 'writer' || $role === 'editor') {

// logic here
}

if (in_array($role, ['admin', 'writer', 'editor'])) {

// logic here
}



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