PHP Reddit – Telegram
PHP Reddit
34 subscribers
289 photos
37 videos
24.8K links
Channel to sync with /r/PHP /r/Laravel /r/Symfony. Powered by awesome @r_channels and @reddit2telegram
Download Telegram
Mailpit: Simple Local Email Testing for Laravel

Mailpit is a local SMTP server that lets you preview Laravel emails in the browser without actually sending them. Perfect for safe email testing during development.

https://laravel-hub.com/blog/mailpit-simple-local-email-testing-for-laravel

https://redd.it/1mfbolg
@r_php
Anyone else feel like PHP is a piece of....

...

A piece of their life?

I have been coding in PHP for 25 years.

I used it in the beginning to extract data from a ROM file for a video game to put together a strategy guide and GameShark cheat codes. Using unpack, bin2hex, and simple file ops. It was sweet and forgiving. I didn't get bogged down with compilers and typing as a teenager.

Now older. I own a home and have a family, that I know is partly because of a long career doing PHP.

Anyone else feel like PHP is a piece of.... their life?

https://redd.it/1mfhnuo
@r_php
How and why?

Recently I looked at Laravel channels, and found out that PHP does not look like previously. Those 7/8+ versions made PHP at a new level.

But to the point.

I think about building chat AI bot, but wile doing some research with perplexity or other AI thing it turns out that Laravel could not handle 10k concurrent users. I know that I will never hit even 10 users, but the main reason to create this kind of application is not only about php, but about using stack which could handle the requirements.

What do you guys think about those 10k concurrent users? Does perplexity lies to me?

Advice needed 😇

https://redd.it/1mfk2i8
@r_php
SWF parser and extractor in PHP

Hi !

Have you ever dream about rendering SWF sprites with PHP ? I think not, but it's possible now.

This library / noscript parse and render SWF sprites and shapes as SVG using only PHP, without need of any dependencies nor external tool like FFDec. So, it result on a really lightweight tool with really negligible startup time.

Its features are (for now):

* Low level parsing of SWF tags structures
* Render shape, sprites, and movieclip as SVG (one SVG per frame)
* Convert SVG to raster image (animated or not) using Imagick
* Extract raster images using GD
* Extract AS2 simple variables as array or JSON (equivalent of \`LoadVars\` in AS2)

And for the performance (thanks JIT) :

* 300ms for sprite rendering with cold start
* 19s for render 693 sprites (\~27ms/sprite)

For comparison, FFDec can only handle one SWF at a time, so with the full start of the JVM each time, it takes about 1s per sprite. Who say that PHP is slow ?

Here the link: [https://github.com/Arakne/ArakneSwf](https://github.com/Arakne/ArakneSwf)

https://redd.it/1mgg1hf
@r_php
Interesting/difficult/funny/complicated topics for a newbie?

Hi, I'm starting new with symfony,
And I like to get an idea of which are the most interesting things but also the more annoying things as well.
To give you a bit of context I'm a seasoned php dev with years of OOP, I've used extbase which is very similar on the surface to symfony, I was able to create a new app in symfony 7 in few hours including the time to watch a 1h introduction video. I had no issues with controllers, routes, repositories and really enjoyed the console to kickstart crud and generated migrations.
Now that I've boosted my confidence I'm preparing myself for the issues and struggling that usually I expect after the first train.

Can you suggest me which problematic topics (or just interesting) should I jump into?

https://redd.it/1mgfsn2
@r_php
Thoughts on avoiding 'Cannot use object as array'?

Hello everyone, I'd like to do deep dive on a subject...this morning I encountered the error the subject. Here is the method though the specifics don't matter to me.

public function quantitylimit($item)
{
$response = 99;
if (!empty($item->inventory)){
if ($item->inventory
count < $response){ $response = $item->inventorycount; }
} elseif (!empty($item['inventory'])){
if ($item['inventory
count'] < $response){ $response = $item'inventory_count'; }
}
return $response;
}


I'd like this method to be able to handle both database rows and class/object representing the same data. Right off the bat, I understand that might be questionable. Here is my logic, most of the time I am working off a single item (product for example) and love having the flexibilty of an object. However, in some situations I am working with a large amount of data (lets say a product search result) and it feels like a lot it's a lot of overhead to generate objects for each row when I'm just displaying basic data.


So, to fix the problem...obviously I can just add is_array() or is_object() tests. I can also check the data at the top of the method and convert it to one format. That is all fine. However I guess I was hoping there were some tricks. I figured it was worth learning/exploring. Really I just wished empty() worked how I expected it to...I'm kind of suprised it doesn't.

Open to all thoughts/ideas. Thanks for your time.

https://redd.it/1mgjmv8
@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/1mgoczs
@r_php
Just wrote a step-by-step Laravel 12 Jetstream + Livewire Authentication tutorial – would love your feedback!

Hey guys, I’ve been learning Laravel for a while and decided to put together my first tutorial to help others (and also make the knowledge stick for me).

It’s a step-by-step guide on setting up authentication in Laravel 12 using Jetstream + Livewire.

https://medium.com/@ghettotechie/mastering-authentication-in-laravel-12-with-jetstream-livewire-edition-2c0902a5f435

I’d really appreciate any feedback. If you see anything I can improve or explain better, let me know.

https://redd.it/1mgyxej
@r_php
Any laravel developer form India

Hey I'm looking a php laravel developer from India to work on a freelance projects

https://redd.it/1mh151f
@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/1mh2min
@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/1mh5l1l
@r_php
Symfony just introduced AI Components - thoughts on this for Laravel?

Symfony just dropped new AI Components that make it easy to integrate AI providers (OpenAI, Claude, etc.) and build agents, assistants, and more directly in your app.

Honestly, this feels like a big step forward for PHP – finally a proper abstraction for working with AI without having to glue APIs manually. (Prism does not really cover agents, and Neuron AI feels… uninspired.)

I really need this for Laravel.

Taylor, please make it happen

https://redd.it/1mh9203
@r_php
Deployment Suggestions for Dockerized Laravel Enterprise App (Azure vs AWS)

Hi everyone,

I’m developing software for a small company that handles about 800 customers per year. They’ve asked me to replace a legacy application stack that currently runs entirely on a single AWS EC2 instance. The backend processes government data with \~1.5 million records added annually.

I’ve rebuilt the system as a Dockerized Laravel app with PostgreSQL, using Docker Compose for local development.

My client is open to either AWS or Azure. I'm aiming for a **transparent, modern deployment process**—ideally using GitHub Actions for CI/CD. I'm currently debating between:

* **Recreating their setup** using an EC2 instance (perhaps with Docker)
* **Modernizing** with something like **Azure Container Apps**, **AWS App Runner**, or similar

What’s the best path forward for this kind of app? I’m particularly interested in:

* CI/CD workflows you’ve used for Laravel in production
* Experiences with Azure Container Apps vs AWS Fargate/App Runner
* Trade-offs of managing containers directly vs using PaaS-style services

Thanks in advance!

https://redd.it/1mh9j63
@r_php
Laravel Analytics beyond visits - SimpleStats 5.0

Hi folks,

while everyone was enjoying Laracon US, we've worked hard to finally release SimpleStats 5.0 with a bunch of new features and improvements!

SimpleStats is a server-side, GDPR compliant and 100% accurate analytics tool for Laravel applications, that goes beyond simple counts of views and visits. It shows you in-depth metrics like Registrations, Conversion Rate, Daily Active Users, campaign ROI, Average Revenue per User, Total Revenue and much more in just a few minutes!

Laravel Analytics Dashboard of SimpleStats

Here’s what’s new:

Improved performance and scalability \- especially noticeable when exploring large time ranges
Event-based pricing (no more total limit blocks for visitors, registrations, etc.)
Email reports for projects (daily/weekly/monthly reports of your project KPIs)
Instant project alerts on new user or payment (disabled by default - ideal for early-stage or smaller teams)
Dark mode improvements and manual toggle in user profile
Redesigned onboarding and registration flow
Dashboard remembers your last selected filters instead of always resetting to “last 7 days”
Fixed edge cases in DAU/WAU/MAU calculation
UI/UX improvements throughout the app
Mobile & responsive improvements for better navigation on all devices
Improved ingestion performance on API stats endpoints
Clickable charts for detail view feature now also supported for week range types
Many small bug fixes and visual refinements
Improved documentation

Feel free to step by and check out SimpleStats at: https://simplestats.io

Thanks for reading,
Zacharias

PS: Your feedback is highly appreciated!

https://redd.it/1mha25s
@r_php
Is thos preferred or not?
https://redd.it/1mhf61o
@r_php
This media is not supported in your browser
VIEW IN TELEGRAM
What is the latest app you built for just yourself? I love janky one day builds like this.

https://redd.it/1mhg3t8
@r_php
Laravel Analytics Beyond Pageviews - SimpleStats 5.0

Hi folks,

while everyone was enjoying Laracon US, we've worked hard to finally release SimpleStats 5.0 with a bunch of new features and improvements!

SimpleStats is a server-side, GDPR compliant and 100% accurate analytics tool for Laravel applications, that goes beyond simple counts of views and visits. It shows you in-depth metrics like Registrations, Conversion Rate, Daily Active Users, campaign ROI, Average Revenue per User, Total Revenue and much more in just a few minutes!

Laravel Analytics Dashboard of SimpleStats

Here's what's new:

Improved performance and scalability - especially noticeable when exploring large time ranges
Event-based pricing (no more total limit blocks for visitors, registrations, etc.)
Email reports for projects (daily/weekly/monthly reports of your project KPIs)
Instant project alerts on new user or payment (disabled by default - ideal for early-stage or smaller teams)
Dark mode improvements and manual toggle in user profile
Redesigned onboarding and registration flow
Dashboard remembers your last selected filters instead of always resetting to "last 7 days"
Fixed edge cases in DAU/WAU/MAU calculation
UI/UX improvements throughout the app
Mobile & responsive improvements for better navigation on all devices
Improved ingestion performance on API stats endpoints
Clickable charts for detail view feature now also supported for week range types
Many small bug fixes and visual refinements
Improved documentation

Feel free to step by and check out SimpleStats at: https://simplestats.io

Thanks for reading,
Zacharias

PS: Your feedback is highly appreciated!

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