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
Samarium v0.9.6 - Improvements and fixes (Delete implemented, models in standard directory, consistent directory structure, UI updates)

Hello All,

Made some improvements to my project in past months. Sharing the update here.

It is a business management tool, made using Laravel and Livewire.

https://github.com/oitcode/samarium

|Area|Improvements|
|:-|:-|
|Delete|Delete functionality added in most of the modules.|
|Models in proper directory|Have moved all the models inside app/Models directory, as is the Laravel standard now. Previously models were in /app directory. Also have grouped models inside related subdirectory. For example product related models are in app/Models/Product directory.|
|Consistent Livewire component directory structure|All livewire components have a consistent directory structure now. |
|Started using service classes.|Have started to use service classes which are in app/Services directory. It is a work in progress, but aim is to move the application/business logic out of models and move them to service classes.|
|UI updates|Made UI changes to make it more user friendly. |
|POS/Billing UI updates|POS/Billing has been made more traditional type UI.|
|Misc updates|Bug fixes.|

https://preview.redd.it/cla3roo1ui8f1.png?width=1846&format=png&auto=webp&s=4a645489c516ff3238dee7429652f3fdcab54de6

It is a work in progress, but still sharing the update here.

Feedback, comments and/or contributions are highly appreciated.

Thanks.

https://redd.it/1lhuvqj
@r_php
MLB Stats API for Laravel

So, I found out the MLB Stats API is free to the public, so I built a wrapper for it for Laravel or PHP projects in general.

Check it out and let me know your thoughts!

https://github.com/zacksmash/mlb-stats

https://redd.it/1li45cs
@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/1li6855
@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/1li91ha
@r_php
How to Overcome Security Anxiety

Hello everyone,

I'm 20 years old and I've been interested in WordPress development for about 5 years. I've also been learning Rust as a hobby. I've tried many things in the software field so far; I've started different projects, I've tried to learn new technologies. However, I've never been able to complete any project completely. The main reason for this is the security concerns I have.

For example, I want to develop a WordPress plugin or theme with PHP or I want to create an application in an MVC structure. But these thoughts keep coming to my mind: “What if my application gets hacked?”, “What if I did something wrong in terms of security and I have problems because of that?”, “What if I get a penalty because of that?”

These thoughts keep going round and round in my mind, and they create a lot of anxiety. This anxiety seriously affects my motivation to produce software and my commitment to the projects. Therefore, I cannot develop my projects with peace of mind and I leave most of them unfinished.

What would you suggest me to do about this? I would be very grateful if you could share your advice and guidance.

https://redd.it/1licurn
@r_php
Feeling stuck as a full-stack web developer, what should I do now..

Hi everyone,

I’m a 2024 CS grad and currently working as Jr. WordPress Full-Stack Engineer at a service based firm, having 1.5 years of experience. My current role includes creating new themes and plugins, managing internal sites and integrating new functionalities into them.

While my current organization is a great place to work certified, still I face lack of support and guidance from my manager on critical situations. I talked to them on this but it never helps.

My manager starts to shout at me whenever any issue occurs without bothering to know the root cause of the issue.

Due to this I started fearing my manager for asking any kind of guidance on how we can handle the critical situation efficiently or any other work related issues. He is neither friendly nor supportive.

Now I just want to leave this firm due to the toxicity and want to switch my role to work as a React developer. But due to my current role i.e., Jr. WordPress Engineer I'm not able to get shortlisted in any kind of React dev positions.

Now I’m anxious, stuck, and worried, what should I do now to change my role and my current firm. I have worked in WordPress Theme & Plugin development, PHP, React.js, Next.js, Firebase, MySQL, Git, Github, TailwindCSS and Material UI.

I'm able to integrate any kind of functionalities into the web application while managing the best practices, coding standards and best security practices (OWASP Top 10) and others.

I'm also having experience in improving the Core Web Vitals i.e., FCP, LCP, CLS, and reducing TBT.

I am open for SDE positions and can even switch technologies in very short span of time.

Please help me any advice and suggestions would be helpful for me.

https://redd.it/1lidaun
@r_php
Discover Junie for PhpStorm: A Game-Changing AI Coding Agent for PHP Development
https://blog.jetbrains.com/phpstorm/2025/06/discover-junie-for-phpstorm/

https://redd.it/1lieru3
@r_php
What's the learning curve for Sylius

I've been developing with Magento 2 for over 4 yrs, now I'm looking to add a new framework under my belt ideally for free lance work.

I'm curious to know what the learning curve would be? I would assume it wouldn't take long to pick it up, but I'm guessing symfony structure is different from Magento

https://redd.it/1liq9r4
@r_php
Rant Laravel dev environments

This has been said before, so feel free to ignore this rant.

- But coming from Homestead (that has been dropped − despite covering a very valid use case of full isolation via VM)
- to be directed via the official doc to Sail, to discover than Sail is an unpolished product − no HTTPS (required for notifications), no multithreading
- to end with Herd, to find out Herd has no Linux version

is disappointing, and I feel like I lost some time. Do you use better Laravel Docker images from trustable unofficial sources ? All I can see in Docker official registry is bitnami/laravel, didnt try it yet.

Looks like I go to https://github.com/svpernova09/homestead

https://redd.it/1liqq5x
@r_php
Laravel 12 Documentation over Laravel Passort is referencing Passport 13

Laravel 12 Documentation about passport (https://laravel.com/docs/12.x/passport) is referencing passport 13.

Is it an idea to mention the version of the package at the top of the documentation page? Or link to a passport documentation page instead of trying to fit everything on the laravel 12 documentation.

https://redd.it/1lj4x5o
@r_php
Swagger UI - single page with all routes and different security

Hi everyone. I'm trying to setup swagger (NelmioApiDocBundle). I need a single page (like /api/doc) with every endpoints. I have 2 types of API endpoints: private and public, so private must be protected with api Key (AuthLogin and AuthPassword).

The problem is that I don't know how to correctly separate zones and specify that apiKey must be used for a private zone. And moreover all zones need to be displayed on a single page.

P.S. I don't really want to specify every endpoint in "paths". So I need a killer feature to solve this. And last but not least I need to do it in nelmio_api_doc.yaml (without code) :( Please help me

https://redd.it/1lj63e8
@r_php
Free hosting for Laravel and Postgres

Hi, so Im new to this kind of task because I mostly focused on my programming skills. Is this task under DevOps?

Anyway, I am looking for your recommendations in free hosting for my Laravel Apps and Database for my portfolio and showcase my stuff. Right now my frontend is Livewire3 which I might tackle React or Vue later on but wanted to focus on PHP/Laravel at the moment to avoid getting overwhelmed.

I could ask AI for this but I need to hear from your personal experiences and expertise. Again, right now Im looking for free ones, not the trial.

Thank you so much

https://redd.it/1lj5zwm
@r_php
Does everyone do their dev work like this?

I'm relatively new to professional programming (currently working with Laravel), and I feel like I rarely write code that works on the first try. For example, I’ll implement an update method in a controller and make a bunch of silly mistakes typos, validating unrelated fields, or calling a model method on a collection without realizing it. It’s only when I start testing that I notice all these issues, and then I end up debugging every little thing just to get it working the way it's intended to.

it's like when there's so much context to keep in mind my brain will go autopilot and I won't even try to think it through because I know I will miss something up anyway

https://redd.it/1lj8njx
@r_php
Locked log file prevents development server from working
https://redd.it/1ljd9ul
@r_php
You can write plugins for VitoDeploy
https://redd.it/1ljjjqs
@r_php
Laravel Nova market size

I work at an agency and we use Nova internally, but I have no visibility into the broader market. Thinking about building some premium plugins but want to gauge if it's worth the time investment.

Anyone have insights on:
- How big is the Nova user base actually?
- Are people still actively buying Nova plugins?
- Is the ecosystem growing or shrinking?

I've tried researching this myself but there's surprisingly little public data on Nova adoption/market size. Would love to hear from other devs who've built plugins or agencies using it.

Thanks!

https://redd.it/1ljke29
@r_php
What’s your production host, and why?

We use render.com and in all honesty, it’s fine. However migrating to it from heroku was a true hellscape.

I can’t think of anything render does that’s particularly annoying and the things that do annoy me, I know render has the featureset to make less annoying (like env variables across the main web service and all the workers, for example).

I’d love to know what everyone else is using and why they use it.



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