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
Looking to Join an Interesting Project

Hey everyone!

I’ve been feeling really motivated lately to collaborate on something meaningful or just plain fun. I’m not here to pitch my own idea – I actually want to join someone else’s project and contribute however I can.

Whether you're working on a startup, a coding project, an open-source tool, a game, or even a creative non-tech endeavor – if you’re passionate about it, I’d love to hear about it. I'm eager to jump in and help with development, design, testing, brainstorming, or just being that extra pair of hands to keep things moving.

Let me know if you have something I can help you!

https://redd.it/1k0o4vs
@r_php
Just hit 300,000 installs on my little PHP package 🎉

It’s one of those moments where you realize—open source is magic.


You put something out there, and it grows beyond you.
It lives because people use it, improve it, and share it.

If you've ever used it, contributed, or even just told someone about it—
thank you. Seriously.

Here is the story: https://medium.com/@revaz.gh/php-heic-to-jpgthe-easiest-way-to-convert-heic-heif-images-to-jpeg-using-php-745d66818dfd

https://redd.it/1k0qkk5
@r_php
Launching TrueReviewer — A Robust & Complete Review and Rating System for Laravel

After successfully launching Commenter, I began my next big mission — TrueReviewer. I might be biased, but I believe TrueReviewer is one of the most complete and powerful review systems available for Laravel. Whether you're building a SaaS platform, e-commerce site, or any other web app, it’s designed to fit right in.

Unlike Commenter, TrueReviewer is API-agnostic — meaning 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.

TrueReviewer focuses on performance, customization, and design. It comes with five beautifully crafted components that are not just visually appealing but also accessible and user-friendly. Each component is built to make an impact without overwhelming the UI, offering a smooth and intuitive experience. Thanks to its modular design, you can use components independently based on your project’s needs.

Going beyond traditional review systems, TrueReviewer includes AI-powered features like sentiment detection and integrity checks, helping ensure the quality and trustworthiness of reviews.

TrueReviewer is currently offered as sponsorware — a paid product. I understand that the Laravel community often prefers open-source tools, and I genuinely planned to release this as open-source. However, given the effort, time, and resources involved, I needed to find a balance between sustainability and community contribution.

I hope you’ll see the value in this package — and if it helps your project, that alone makes it worth it.

Official Site - https://truereviewer.netlify.app

Product Hunt - https://www.producthunt.com/posts/truereviewer

https://preview.redd.it/1juvpp1lgbve1.jpg?width=1156&format=pjpg&auto=webp&s=b7fd144cf703189f4ea7d4160c856d3206129d5f

https://preview.redd.it/lhzguxgogbve1.jpg?width=1249&format=pjpg&auto=webp&s=0658633ad86e567cf8bc93a973737763e71ce01e

https://preview.redd.it/7bofkp5pgbve1.jpg?width=1247&format=pjpg&auto=webp&s=039cf103d8eb27e3e08db680320f0e12f01f5fe7

https://preview.redd.it/e8tcr7upgbve1.jpg?width=1249&format=pjpg&auto=webp&s=8963e439921a2fa07c1b0055ccf18ee6eeb033ef

https://preview.redd.it/tjvrrpuqgbve1.jpg?width=1272&format=pjpg&auto=webp&s=1e5149cba5097c163e84313c8955ff6d7a2f5089

https://preview.redd.it/7c6p9xuqgbve1.jpg?width=1259&format=pjpg&auto=webp&s=254320b4659e981a7d556c7a097b1510c861f8d0

https://preview.redd.it/1q6l4vwrgbve1.jpg?width=1317&format=pjpg&auto=webp&s=1d7d8d73a574b1a42469db6fc102f9ad4018cafd

https://redd.it/1k13id4
@r_php
Launching TrueReviewer — A Robust & Complete Review and Rating System for Laravel

After successfully launching Commenter, I began my next big mission — TrueReviewer. I might be biased, but I believe TrueReviewer is one of the most complete and powerful review systems available for Laravel. Whether you're building a SaaS platform, e-commerce site, or any other web app, it’s designed to fit right in.

Unlike Commenter, TrueReviewer is API-agnostic — meaning 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.

TrueReviewer focuses on performance, customization, and design. It comes with five beautifully crafted components that are not just visually appealing but also accessible and user-friendly. Each component is built to make an impact without overwhelming the UI, offering a smooth and intuitive experience. Thanks to its modular design, you can use components independently based on your project’s needs.

Going beyond traditional review systems, TrueReviewer includes AI-powered features like sentiment detection and integrity checks, helping ensure the quality and trustworthiness of reviews.

TrueReviewer is currently offered as sponsorware — a paid product. I understand that the Laravel community often prefers open-source tools, and I genuinely planned to release this as open-source. However, given the effort, time, and resources involved, I needed to find a balance between sustainability and community contribution.

I hope you’ll see the value in this package — and if it helps your project, that alone makes it worth it.

Product Hunt

https://preview.redd.it/0k8sm3oc2cve1.jpg?width=1156&format=pjpg&auto=webp&s=d6c92a08acb17b7bc2bef9922d0a2fd91c97d1e3

https://preview.redd.it/64cxfoaj2cve1.jpg?width=1249&format=pjpg&auto=webp&s=3039f4bc293dfea5b3b44be08799f46201ca505f

https://preview.redd.it/6ftzjchv2cve1.jpg?width=1259&format=pjpg&auto=webp&s=9bd82b3d3f37fd8c86c485ba75c1d8710e9f9b70

https://preview.redd.it/qnfb56cw2cve1.jpg?width=1317&format=pjpg&auto=webp&s=9bd6c2a7d110af5cb47ef22886ae4fda7f980946



https://redd.it/1k15hxp
@r_php
I absolutely love this True Async RFC!!!

I have just been reading through the True Async Stage 3 and WOW! What a refreshing RFC! I love the implementation so so much!!! It’s so clean! It feels like PHP! Great job!

https://externals.io/message/127120

https://redd.it/1k16gp1
@r_php
I just realized backed enum cannot be printed directly

I was using some backed enums and realized that eums cannot be printed directly or passed to functions like fputcsv, even though there is a text rappresentation of them. Also, you cannot implement stringable.

I also found a few rfc talking about this:

[https://wiki.php.net/rfc/enumerations#auto-scalar\_conversion](https://wiki.php.net/rfc/enumerations#auto-scalar_conversion)
https://wiki.php.net/rfc/auto-implement\_stringable\_for\_string\_backed\_enums

In the first RFC, I guess it made sense at that time hold back on this behaviour. Instead, do you know what happend to the second RFC?

Maybe this discussion could be reopened now that enums are more battle tested?

https://redd.it/1k19onm
@r_php
Laravel: When you're the entire dev team and still ship faster
https://redd.it/1k1dh9h
@r_php
Facebook marketing api

Hello,

I am working in a legacy facebook marketing api. The legacy code does daily +4000 api query per day. To handle this the legacy code use proc_open and sleep for 5 sec for every chunk of apis. The code create some CSV and after finishing all the api calls it merge all CSV to one CSV to import later on db.

This solution works fine sometimes and sometimes freezes without any error. So I thought to refactor with laravel jobs/queues. Any one have been working with facebook apo or laravel queue to handle thousand of api calls?

https://redd.it/1k1gjjt
@r_php
Issue with doctrine flushing objects after exception

I'm running a Symfony command and the persists and flushes seem to work just fine until I throw an exception and the persists and flushes seem to stop working

here's the code:

try {
throw new \Exception("foo");
$successEvent = $this->dispatcher->dispatch($totalChargeEvent, 'billing.charge.card');
} catch (\Exception $e) {

$this->markSubnoscriptionsCanceled($subnoscriptionsToBePaid);

continue;
}



public function markSubnoscriptionsCanceled(array $subnoscriptions) : void
{
$now = new \DateTime();
foreach($subnoscriptions as $subnoscription) {

$subnoscription->fromArray(
'status' => Subnoscription::SUBSCRIPTION_STATUS_CANCELED,
, $this->em);
$subnoscription->setCanceledAt($now);
$this->em->persist($subnoscription);
}
$this->em->flush();
}

There are no exceptions or problems after the initial exception. Everything seems to work fine except that after the items are flushed... the changes aren't saved to the database. I'm having trouble understanding why this is happening. Another db row deletion returns with success after the exception as well, but in the Database, the row is still there (It works fine if the exception isn't thrown and caught). I checked and the objects are "contained" in the entity manager, and the connection is open. Any insight is helpful. thanks. Perhaps db connections function differently in commands? I dunno.

https://redd.it/1k1qoup
@r_php
Certifications

Unfortunately the financial and time commitment barrier required of post secondary education proved too great. I've worked as a Web Applications Developer for four years and in my current position do a mix of general IT and Wordpress Plugin Development. I want to better refine my craft (security and authentication are some weak points personally) and provide some sort of paper of proof to add on top of my Github for a future employer.


Any recommendations?

https://redd.it/1k1tjpd
@r_php
Help me convince company to allow me to add redis

I work for a small business which runs a PHP 8.3 /Symfony 7.2 API application (UI runs in React on a completely separate instance) in a major cloud provider. The instance is built in docker and runs apache.

We use the Lexik Authentication bundle so a running instance will provide a bearer token, currently stored in memory, with the refresh token stored in the database.

The cloud provider scales up and down the number of instances in response to load. However, because the bearer tokens are stored in memory in each instance, it becomes a lottery each time a request is made, as to if you will hit the same server that your system authenticated with initially, leading to lots and lots of requests to refresh the bearer token. Each request takes around 200 - 250ms to complete, so this adds a noticeable delay when using the UI.

I would like to add redis to our infrastructure so that, in the short term, store the bearer tokens in redis. I could use memcached as well, but I'm more familiar with redis.

My tech lead is not keen on this idea for some reason, even after I've explained all of this. I'm aware that Symfony supports redis out of the box as well, and this has also been explained.

How can I convince my organisation to at least let me set this up on a test environment (also running in the cloud provider)? I think this would be a massive improvement to the app.

Also, do you think it's worth moving the refresh tokens to redis as well? The app provides a facility to reset passwords using a token. Should that also move?

Also I mentioned Apache before. Would the app benefit from moving to nginx/PHP FPM?

Thanks for your help in advance.

https://redd.it/1k1u2m3
@r_php
Is React the new king of the front-end with Laravel?

We're considering moving away from Svelte in our large Inertia 1.0 application instead of migrating from Svelte 4 to 5.

Not because Svelte is bad - not all, it's fantastic, and I love Svelte 5 even more - but because we as a team feel like we're missing so much by being outside of the ecosystems of Vue and React.

Our first thought was to migrate to VueJS because we have experience with it, but also because almost everyone on the team has a personal opinion that it's much nicer to work with that React.

But one of our developers brought up the question - "even though we're not personal fans of React, should we be considering it purely for the ecosystem support?"

With Laravel Cloud being React, I can see many tools coming out in the future from the team that are React-first, and I haven't seen much 'buzz' in the Vue ecosystem in a long time.

I'd love to know how everyone is feeling around Vue recently - I believe that support for it will always remain in first-party tools (at least, for another {x} years), but how are you all feeling about it?


https://redd.it/1k20zh0
@r_php
Here are some funny definitions of (PHP), enjoy

1. PHP – Please Hold Pain

>

2. PHP – Probably Has Problems

>

3. PHP – People Hate Programming (in it)

>

4. PHP – Panic Here Please

>

5. PHP – Painful, Hilarious, Perpetual

>

6. PHP – Print Hello Please

>

7. PHP – Please Hire Python

>

8. PHP – Pizza Hut Programming

>

https://redd.it/1k21afg
@r_php
What happened with p++?

Hi all. I'm a programmer who mostly has a background in non web-dev programming (lots of data programming). Although I do have one personal project with Node and Express.

Several years ago I heard of the P++ project that was being debated within the php community. I read recently that PHP has a very good type system these days. Was that type system implemented from the p++ project or did it come from something else? I'm just curious.

Thanks!

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