PHP Reddit – Telegram
PHP Reddit
34 subscribers
292 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
Long running command using httpClient starts printing curl debug info

I've got a command that uses a service that repeatedly calls httpClient->request('POST'. The process runs for around 45 min and makes a post request a few thousand times.

What's odd is after running for a few minutes (and a few hundred POST requests) I start getting debug information from CURL for every new request - like this:

Connection #2 to host generativelanguage.googleapis.com left intact
.
Found bundle for host: 0x1b134070c11 can multiplex
Re-using existing connection with host generativelanguage.googleapis.com
HTTP/2 1769 OPENED stream for https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-8b:generateContent?key=--------
[HTTP/2] [1769] [:method: POST]
HTTP/2 1769 :scheme: https
[HTTP/2] [1769] [:authority: generativelanguage.googleapis.com]
HTTP/2 1769 :path: /v1beta/models/gemini-1.5-flash-8b:generateContent?key=--------
[HTTP/2] [1769] [content-type: application/json]
HTTP/2 1769 accept: */*
[HTTP/2] [1769] [user-agent: Symfony HttpClient (Curl)]
HTTP/2 1769 accept-encoding: gzip
[HTTP/2] [1769] [content-length: 83719]
> POST /v1beta/models/gemini-1.5-flash-8b:generateContent?key=-------- HTTP/2
Host:
generativelanguage.googleapis.com
Content-Type: application/json
Accept:
/
User-Agent: Symfony HttpClient (Curl)
Accept-Encoding: gzip
Content-Length: 83719

upload completely sent off: 83719 bytes
< HTTP/2 200
< content-type: application/json; charset=UTF-8
< vary: Origin
< vary: X-Origin
< vary: Referer
< content-encoding: gzip
< date: Tue, 06 May 2025 02:57:32 GMT
< server: scaffolding on HTTPServer2
< content-length: 610
< x-xss-protection: 0
< x-frame-options: SAMEORIGIN
< x-content-type-options: nosniff
< server-timing: gfet4t7; dur=1763
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000

anyone have an idea why this is happening?

https://redd.it/1kg7tgi
@r_php
Struggling to grasp Laravel after learning PHP — advice needed!

I recently learned PHP and wanted to start with Laravel, but I’m having a hard time understanding how everything works—especially Composer, artisan commands, and the overall structure of the framework. It feels like there’s a gap between learning core PHP and jumping into Laravel. Should I spend more time on advanced PHP concepts first, or just keep going with Laravel tutorials? Any advice or beginner-friendly resources that explain things clearly would be really helpful.

https://redd.it/1kg8qzq
@r_php
PHP lib for character / avatar drawing

Hello there! Not an advanced dev here, mainly used vanilla PHP or CMS-based.

I'm trying to create a small project to teach about stereotypes.

From an official source, I got percentages about particularities (age, disability, ...). Next, I generate a random person based on these particularities and, last step, I want to create an avatar of this person (example: blind old lady, good rent, low education, ...).

Do you know any library with an high level of customization? Or maybe I should try differently, with JS or CSS5?


Thanks in advance for your help!

https://redd.it/1kg7z4e
@r_php
An RFC to add RFC3986 and WHATWG URL compliant parsers to PHP
https://wiki.php.net/rfc/url_parsing_api

https://redd.it/1kgdf8t
@r_php
Symfony repo featured on the Temporal Code Exchange

I am pleased and honored to announce that my open source package to get started with Temporal durable workflows and Symfony is now featured on the Temporal Code Exchange.

https://temporal.io/code-exchange/temporal-samples-for-the-symfony-framework

https://redd.it/1kgrnf4
@r_php
Is there anyone one who has ever deployed a Laravel website to Hostinger using shared hosting (not VPS)?

I have been at it now for weeks, and I have consulted multiple AI's, documentation, and I can't seem to get my site deployed to Hostinger, so I am asking here as I am very curious to know if anyone has ever done so? And if so, perhaps you could let me know or point me to a good source where I can get it done?

I know that it's not so straightforward and requires installing lots of Laravel dependencies in the server using SSH access, which I have done, and so I would just be grateful to know if anyone out there has successfully deployed a Laravel site to Hostinger on a shared hosting plan, rather than VPS.

https://redd.it/1kgs48x
@r_php
Job systems

Are there job systems for php, like Sidekiq and SolidQueue are in the Ruby (on Rails) world? I've looked at RabbitMq and Symfony Messenger, with the latter being more what I'm looking for but still not quite the same thing. I'm not using any framework but I am already using some packages from Symfony.

https://redd.it/1kh3ewd
@r_php
Adding User-Selectable Audio/Video Trimming to Filament Forms

Hi folks,

Quick question for the FilamentPHP and Laravel community!

I'm using Filament forms with the Spatie Media Library plugin to handle audio and video uploads for my models. This part works great.

The challenge I'm facing is that I need to allow users to not just upload a file, but also trim it down to a maximum of 10 seconds. Crucially, I need the user to be able to choose which 10-second segment they want to keep from the uploaded file, ideally directly within the Filament form interface.

On the backend, I know FFmpeg is the go-to tool for server-side trimming based on start time and duration.

My main hurdle is the frontend user interaction part. Allowing a user to select a specific 10-second clip typically requires a media player with controls or a waveform/timeline interface in the browser. However, I'd ideally like to avoid building a complex custom frontend component from scratch myself.

Any pointers, examples, or suggestions would be hugely appreciated!

Thanks in advance!

https://redd.it/1khdw5k
@r_php
As someone with PHP already installed locally, I can appreciate when trying out a codebase can be this simple

I have to say I'm proud of how the development environment instructions turned out for Lipupini: https://files.catbox.moe/9wsx68.png

Make sure all dependencies are installed first.

1) Clone the app and cd into the project root

git clone https://github.com/lipupini/lipupini.git


cd lipupini


2) Install Composer dependencies. Composer should automatically create the config file after installing.

composer install


3) Navigate to the webserver document root and start PHP's built-in webserver

cd webroot


php -S localhost:4000 index.php


4) Visit http://localhost:4000/@example

Repository: https://github.com/lipupini/lipupini/blob/demo/README.md#starting-the-php-webserver

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