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
Google Cloud Pub Sub Multiple Subnoscriptions

Hey everyone,

At my work, we run a Symfony 7.2 app within Google Cloud, and we have an in-house written process that will pull from the various subnoscriptions we have and process messages.

I've now been tasked with rewriting this and integrating it into Symfony Messenger. That challenge is that for ... reasons (https://github.com/symfony/symfony/issues/44635), Symfony Devs refuse to write an integration for Messenger.

This leaves me looking at packages like petit press messenger https://github.com/petitpress/gps-messenger-bundle, however I have 2 basic requirements:

It must support multiple topics/subnoscriptions
I must have the option of cycling through the subnoscriptions and pulling messages, like a round robin. (So pull 10 from Sub A, 10 from Sub B etc)

Petit Messenger doesn't do either of these as far as I can tell, so was part way through writing my own.

I guess the challenge with this will be how I link a message back to a queue to be able to acknowledge it.

Just wondering if anyone else has had to do something similar, and what was your solution.

Cheers

https://redd.it/1jfk21i
@r_php
Scaling PHP for Real-World Applications: Seeking Your Feedback on My Newsletter

As the noscript says, I'm looking for feedback and critique. Every year we hear from someone about the fictional death of the immortal PHP =). But as a CTO specializing in PHP refactoring, I see its immense potential for scaling. I've launched a “PHP at Scale” newsletter — my monthly deep dive into best practices, architecture patterns, and real-world use cases of PHP in large, complex applications. https://phpatscale.substack.com

Getting meaningful critique and improvement suggestions is hard as you start a newsletter like this, so I hope you guys can get me some. The idea for this newsletter is to help the community, so I will value any ideas or opinions.  

As of right now, my newsletter has 7 issues, some of the topics I’ve tried to cover practically:

PHP's place in the modern web development scene
Keeping code-base up-to-date
Day-to-day rules we can follow to improve our code
Improving performance
Documentation
My interview with Roman Pronskiy (CEO of the PHP Foundation) + some business perspective on PHP 

Specific Questions for Your Feedback:

What are the most significant scaling challenges you're currently facing in your PHP projects?
Are there any specific architecture patterns or best practices related to PHP scaling that you would be most interested in reading about in the newsletter?
Are there any specific topics you would like covered in future issues?
What is your preferred newsletter length and frequency?

I value your insights and opinions. Hope you’ll find something useful for yourself in my newsletter, if you do - consider subscribing. 



https://redd.it/1jfs9m1
@r_php
Need Better Custom IDs in Laravel? Check Out Laravel ID Generator! 🚀

https://preview.redd.it/72c4ppqpzwpe1.png?width=1738&format=png&auto=webp&s=82f5f0a5fb2e6b2fabcbb7c34575b89adf0a6ffd

We’ve all been there—working on a Laravel project and realizing that auto-incremented IDs or UUIDs just don’t cut it. Whether it’s for invoices, orders, or any structured numbering system, we need something better.

So, I built Laravel ID Generator—a simple yet powerful package that makes generating structured, readable, and customizable IDs effortless!

Features:
✔️ Unique IDs with custom prefixes, suffixes, dates, and more
✔️ Seamless integration with Eloquent models
✔️ Ideal for invoices, receipts, orders (e.g., INV-0005/2025)
✔️ Flexible & requires zero configuration

🔗 GitHub Repo: https://github.com/omaressaouaf/laravel-id-generator

If you’re working with Laravel and need better ID management, check it out! Would love your thoughts, feedback, or contributions. 🚀

https://redd.it/1jg0dm9
@r_php
How to effectively block bots?

Good morning,

How to block the 200 accounts that automatically register on your site?

https://redd.it/1jgd7qa
@r_php
new uptime monitor application written with laravel!

Hello to all,

I am working on an uptime monitoring and incident management application. written in php 8 (with laravel framework). Fully dockerized, easy installation.

https://apphealer.io
https://github.com/AppHealer
https://facebook.com/AppHealer
https://linkedin.com/company/AppHealer/

Please be kind and give me some support (sharing, followers on linkedin/facebook, github stars etc) or any kind of opinions / feature requests / pull requests. :)

have a nice day! :-)



https://redd.it/1jgeai7
@r_php
Doxswap Feedback 💬 What formats do you most often convert Markdown to and from?

I'm working on the v1 release of Doxswap — a Laravel package for document conversion. The pre-release got a great response. You can take a look at the current v1 progress ere https://github.com/Blaspsoft/doxswap/tree/doxswap-v1.0.0

Right now I’m focusing on adding Markdown conversions, and I’d love to understand how people actually use it in the wild:

What formats do you most often convert Markdown into or from?
e.g.
markdown --> html

html -> markdown

markdown -> pdf

markdown -> epub

Drop your thoughts below — I'm aiming to make Doxswap flexible, but I want to prioritize the real-world cases that matter most to devs.

Thanks in advance for your input!

https://redd.it/1jgf9ur
@r_php
Starter kit - unnecessary work being done in boiler plate.

In the the HandleInertiaRequests middleware, the boiler always finds a quote, and shares it with the page. Seems like unnecessary work being done on every page request to me :-/ Why not strip it out?





/
      Define the props that are shared by default.
     

      @see https://inertiajs.com/shared-data
     

      @return array<string, mixed>
     
/
    public function share(Request $request): array
    {
        $message, $author = str(Inspiring::quotes()->random())->explode('-');

        return
            ...parent::share($request),
            'name' => config('app.name'),
            'quote' => ['message' => trim($message), 'author' => trim($author),
            'auth' =>
                'user' => $request->user(),
            ,
            'ziggy' =>
                ...(new Ziggy)->toArray(),
                'location' => $request->url(),
            ,
        ];
    }


https://redd.it/1jgdqwu
@r_php
Scramble 0.12.14 – Laravel API documentation generator update: enum cases documentation, support for array request bodies, improved type inference for classes properties, and `only` and `except` Laravel Data support.
https://scramble.dedoc.co/blog/scrambledrop-scramble-01214

https://redd.it/1jghqfg
@r_php
IDE helper for PHPStan extension development

PHPStan is distributed via PHAR file, rather than pure PHP files. While this is perfectly adequate for *using* PHPStan, but it makes a pain to write its extension. Most IDEs and autocompletion tools cannot reference the code inside PHAR packages.

So I made it 😋



How to use?

composer require --dev headercat/phpstan-extension-ide-helper



How it works?

The steps below are automatically executed by GitHub Actions. It's not something you need to do.

1. Clone phpstan/phpstan-src repository to /phpstan.
2. Scan all PHP files from /phpstan.
3. Add return; after namespace declaration to all scanned files from step 2.
4. Write them to a new directory /main.
5. Find composer dependencies that starts with phpstan/ from /phpstan/composer.json.
6. Add them to /main/composer.json.
7. Done!



GitHub repository:

https://github.com/headercat/phpstan-extension-ide-helper



https://redd.it/1jgjqlo
@r_php
Have you ever started an existing laravel / blade project and then decided to bring in breeze features afterward?

Looking at breeze with it's built in 2fa and auth systems with email password change built in- If you wanted to adopt those features, would the wisest path be to create a fresh breeze project and then manually bring in my other projects controllers / db structure / blades, env variables, etc? Or is it possible to bring breeze right into an existing project?

https://redd.it/1jglzp3
@r_php
HostPapa Scam Exposed: Lies, Downtime, Hidden Fees, and Endless Upselling – Don’t Get Trapped Like I Did

Hey Reddit,

I want to warn you about something that almost cost me big: HostPapa. Like many people, I was drawn in by their “affordable” pricing and promising features, but what followed was a frustrating cycle of downtime, upselling, and endless support issues. After dealing with it firsthand and doing a lot of digging, I realized I’m not alone – thousands of other users, reviews, and even employees have spoken up about how HostPapa operates.

If you're considering HostPapa or want to know what’s really going on behind the marketing hype, here are some major red flags you should be aware of:

---

### 1. Bait-and-Switch Pricing & Hidden Fees
- Low Initial Cost, Skyrocketing Renewals: Like many low-cost hosts, HostPapa lures you in with cheap introductory offers. However, their renewal prices can triple after the first year. Many customers have felt blindsided by sudden price hikes (source, source).
- Surprise Upsells: Customers report being aggressively upsold for “necessary add-ons” that should be included in any decent hosting plan. Jason Teale’s review details how he was pressured to pay more just to maintain decent uptime (source).

---

### 2. Poor Uptime and Server Performance
- Frequent Downtime: Despite promises of 99.9% uptime, HostPapa has been criticized for frequent server crashes and long downtimes. Reviews on sites like ProductReview and WebsitePlanet frequently mention websites going offline for hours or even days without explanation (source, source).
- Slow Website Speed: Many users have reported painfully slow load times, which is bad news if you’re running a business or care about SEO.

---

### 3. Lackluster Customer Support
- Long Wait Times and Unresolved Issues: While HostPapa boasts 24/7 support, numerous customers on BBB, Sitejabber, and other platforms have shared stories of long hold times, unhelpful responses, and unresolved issues (source, source).

---

### 4. Aggressive Sales Tactics and Upselling
- Support That Prioritizes Upselling Over Solutions: Instead of helping you fix issues, HostPapa support often tries to upsell you on more expensive plans, features, and services (source).

---

### 5. A Troubling Reputation – Even Among Employees
- Glassdoor Employee Reviews: It’s not just customers who are unhappy – even former employees have called out HostPapa for their aggressive sales focus and lack of care for customer satisfaction (source).

---

### 6. A Pattern of Complaints and Warnings
- Better Business Bureau (BBB) Complaints: HostPapa has over 140 complaints on the BBB website, many of which echo the same themes: poor customer service, surprise charges, and unresolved downtime (source).
- Scamalytics Flag: HostPapa’s IP range has even been flagged on Scamalytics for high-risk activity, which isn’t exactly reassuring (source).

---

### Conclusion: Is HostPapa a Scam?
Whether or not you’d call HostPapa a scam is up to you, but based on the overwhelming pattern of negative reviews, hidden fees, poor service, and constant
upselling, it’s clear that something isn’t right. They might work fine if you’re a casual user with a small website and no big expectations – but if you’re serious about your online presence, I’d recommend looking elsewhere.

If you’ve had experiences (good or bad) with HostPapa, feel free to share them below. Let’s get the word out so others don’t fall into the same trap!

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