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
help with a project.

I'm having a problem with the main page part, the article i want to write should be on the slider . but its right in the middle . it doesn't slide to the side, i deleted the center from css and even used float but it didn't improve. what should i do ?


if anyone can help me please respond ;-;

https://redd.it/1l01kvs
@r_php
What would you want to see in the next Laracon?

With all the new developments in NativePHP (just heard that now supports filament), I'd love to see a live demonstration of building and running a mobile app on stage.

How cool would it be if Taylor coded something like a todo list app live in a few minutes and ran it on an android device? But that's just me, I love watching people code live lol.

What would you want to see?

https://redd.it/1l08m3r
@r_php
Garlic-Hub: Open-Source, Self-Hosted Digital Signage CMS

I’m building in public and open source because the digital signage industry lacks transparency, with mostly cloud services or complicated outdated open-source solutions available.

What is garlic-hub?

Garlic-hub is a self-hosted, open-source digital signage solution

Digital Signage needs two parts:

garlic-hub as CMS: A modern CMS using a contemporary tech stack for easy use and deployment.
PHP 8.3 with SLim4 framework
Docker for simple, portable deployment
SMIL as Open Standard for Playlists
Modern vanilla JavaScript and HTML5 for fewer dependencies in the frontend
Player: I have already developed a media player named garlic-player which runs on Linux, Windows, macOS (Intel+Arm), and Android

Ways to contribute / Feedback welcome on:

Key features you’d expect in a digital signage CMS
Would you test or use Garlic-Hub?

I’d be really happy if you could star the repo to show your support:
https://github.com/sagiadinos/garlic-hub

Docker images available (x86 + ARM64):
https://hub.docker.com/r/sagiadinos/garlic-hub



https://redd.it/1l0i1nh
@r_php
🚀 Built an AI-Powered User Manager in Laravel (Live Demo + Code)

Hey devs! 👋

Just wanted to share a cool sample project I live-coded using Laravel + Filament + LarAgent — an AI-powered User Manager that can:

📊 Count users
Read use data
💳 Change subnoscription plans
💬 All via a chat interface powered by LLMs

Instead of a classic admin panel, we let an AI agent handle the logic — with tools, memory, and real-time responses.

📺 Watch the livestream replay **https://www.youtube.com/watch?v=\_t6r6HIGERU&t=2s&ab\_channel=PunyapalShah**
💻 Source code on GitHub: github.com/MaestroError/punyapal-usermanager-agent
📖 Quickstart with LarAgent: docs.laragent.ai/quickstart

https://redd.it/1l0n3v5
@r_php
Recommendations for learning PHP

I was wondering if there are any good resources that could be recommended to learn PHP or ones that seem beginner-friendly? Hoping to learn Laravel following on from this:)

I know JavaScript, HTML, CSS and React for reference. Very much starting out still so to speak. Thank you in advance!


https://redd.it/1l0s0ju
@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/1l0ty7z
@r_php
How to know if user is connected or not ?

I am really sorry if my question is stupid (I fell stupid asking it :D )

I have an app with 2 parts :
\- a VueJS front (SPA)
\- an API in Symfony

My app is available for both public and logged users. It's an SPA (so users change pages and pages "make" api calls to retrieve data)
Logged users have specials access (like posting comments etc.)

The authentication is JWT based with a token stored in http-only cookie.

My question is simple: how do you determine if a user is logged in, so you can, for example, show a dropdown in the navbar with their profile picture and access to settings?

My initial approach would be to create a dedicated route that simply returns whether the user is logged in or not. And call this route early when the app loads.

Do you have better idea to do it ?
How would you dot it ?





https://redd.it/1l0vvn1
@r_php
Which Cloud hosting service do you recommend for PHP 8.4?

All that I've contacted don't seem to support this version.

Which reputable cloud hosts support 8.4?

https://redd.it/1l0ypfd
@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/1l17oki
@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/1l1aiad
@r_php
appendHTML with the new Dom library

If you are working with the new Dom\HTMLDocument in PHP 8.4 and want to append a HTML snippet to the document by creating Dom\DocumentFragment, shouldn't there be a appendHTML similar to the appendXML?

https://redd.it/1l1hd81
@r_php
How is login using Sanctum and API tokens safe?

I can see that the docs suggest we create a new endpoint that takes login details + a device name, and returns a token with successful auth.

What I don't understand is, how is this endpoint secured? In session based auth, we are protected by a domain-level cookie, but here, there doesn't seem to be any protection mechanism. What prevents any malicious actor from creating a phishing site, using the real API endpoint to test credentials, and then extracting said credentials for malicious use?

https://redd.it/1l1iynz
@r_php
This media is not supported in your browser
VIEW IN TELEGRAM
I'm thinking about building a noscript like this. Are there any existing similar ones?

https://redd.it/1l1mnb2
@r_php
My First WordPress Website — Would Love Your Feedback!

Hi everyone! I just built my very first website on WordPress: https://depositforhousebuy.com/ I’m eager to hear your honest thoughts on the design and user experience. Any suggestions or tips are highly appreciated. Thanks in advance!

https://redd.it/1l1mwe9
@r_php
Debugging tools for PHP?

Hi all, if you're working on JS, we got the benefit of browser tools that allow you to test code in real-time, pause them, track variables, show errors, etc. Are there tools that do something like that for PHP?

If there are no such tools, are there other tools or methods that you recommend besides looking through error logs?

FYI I ask this as a guy who's developing Wordpress themes. I thought I can ask here as it's very reliant on PHP.

EDIT: Just noticed the rule indicating that this subreddit isn't for help posts. So this'll be the last time I'll post something like this here. Thanks for those who posted their feedback.

https://redd.it/1l1u3ln
@r_php
AI and IoT with Laravel - Is it really a real opportunity or just a hype.

Has anyone here integrated AI APIs or IoT devices with Laravel in real-world projects?

I’m curious about the practical challenges and benefits, like using Laravel to process real-time IoT data, automate tasks, or add AI-driven features such as chatbots or analytics.

What use cases have you found most effective, and what hurdles did you face during implementation?

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