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
Why there is programmers hate PHP

Hello developers , I have a question , why there is programmers hate PHP and web development .

https://redd.it/1kasvfn
@r_php
What headaches/limitations have you found with Filament?

I just started learning Filament via Laracasts and wonder how I've lived without it. It's one of the biggest game changers I've found in a long time, if not ever. I'm still working through the video series, and am seeing how I can re-write an existing project using it, and see how powerful it is.

What kinds of limitations and issues have you personally come across?

https://redd.it/1kato5i
@r_php
UX-Autocomplete querybuilder using documentation example not working.

I could use some help checking my understanding of the ux-autocomplete query\
builder documentation, because I don't see how their example of passing extra_options to a query builder will work. I'm using Symfony 7.2 , php 8.4.6, Fedora 42

Following the example here: https://symfony.com/bundles/ux-autocomplete/current/index.html#passing-extra-options-to-the-ajax-powered-autocomplete

I turned my working function:

'querybuilder' => function (EntityRepository $er): QueryBuilder {
return $er->queryActivePeople(null);
},

Into this:





'query
builder' => function (Options $options) {
return function (EntityRepository $er) use ($options) : QueryBuilder {
return $er->queryActivePeople($options'extra_options''extra_people');
};
},
Which results in this error:

Uncaught PHP Exception TypeError: "App\\Form\\PersonAutocompleteField::{closure:App\\Form\\PersonAutocompleteField::configureOptions():28}(): Argument #1 ($options) must be of type App\\Form\\Options, App\\Repository\\PeopleRepository given,

Which is pretty much what I expected from changing the type of the first closure parameter. Can someone point me to what I am missing, or are the docs just wrong ?

https://redd.it/1kawvoi
@r_php
Looking for a Laravel-Based Shopify Alternative with Multi-Tenancy

Hey folks,

I’m currently exploring self-hosted, Laravel-based e-commerce platforms that are close in functionality to Shopify — especially with support for multi-tenancy (i.e., letting users create their own store under subdomains or custom domains).

I’ve already looked into a few:
• Bagisto – Nice UI, built on Laravel + Vue, seems solid but not sure about multi-tenancy support out of the box.
• Aimeos – Very powerful, but feels a bit enterprise-heavy.
• Lunar – Looks promising and modern, but seems a bit early for production with multi-tenant setups.
• Vanilo – Great Laravel-native option, but still seems single-tenant by default.

Ideally, I’m looking for something that’s:
• Laravel-based
• Multi-tenant (users can manage their own storefronts)
• Has Stripe or similar integration
• Actively maintained
• Open-source (or at least self-hostable)

Has anyone built or seen something like this? Would love recommendations or even success/failure stories if you’ve attempted something similar.

Thanks in advance!


https://redd.it/1kazvjy
@r_php
Serversideup container won't start—need help!

I'm trying to run the serversideup/php stack for 8.4.6-fpm-nginx, but when the stack starts up on 'Localhost', I get a 'File not found' error

docker-compose.yml

services:
  php:
image: serversideup/php:8.4.6-fpm-nginx
ports:
- "80:8080"
environment:
- SSL_MODE=off
volumes:
- ./app:/var/www/html

nginx/default.conf

    server {
        listen 80;
        index index.php index.html;
        server_name localhost;
        root /var/www/html;
        error_log /var/log/nginx/error.log;
        access_log /var/log/nginx/access.log;


        # client_max_body_size 100M; # Se quiser enviar arquivos grandes (upload no Laravel)

        location / {
            try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
            try_files $uri =404;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_pass php:9000;
            fastcgi_index index.php;
            include fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_noscript_name;
            fastcgi_param PATH_INFO $fastcgi_path_info;
        }

        location ~ /\.(?!well-known).* {
            deny all;
            }
    }

Container log

AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0" "-"



[172.18.0.1](http://172.18.0.1) \- - \[29/Apr/2025:21:41:13 +0000\] "GET / HTTP/1.1" 404 47 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0" "-"




https://redd.it/1kazzna
@r_php
Well now what... PHP expert seeing jobs close within 3 hours

Hopefully posting this screenshot of the issue in question is allowed: PHP jobs stop taking applications after a few hours.

https://imgur.com/a/wsmW20j

Anyway, PHP and its surrounding tech has been my expertise for a decade, and my career seems to have gone dead overnight.

I'm trying to figure out how to make money but it all feels like starting over because I don't have an established online presence. I didn't think I'd need one with how many calls and emails I got and how quickly I got jobs over the years, and now I'm getting mostly a trickle of rejections. I guess I got too comfortable, but I have several months to try to figure something out.

I'm seeing all kinds of things about making money with AI or Shopify or YouTube etc, but it's basically all new to me. I'm currently trying to ramp up a website helping small businesses and entrepreneurs with my expertise (also includes project management and work with surrounding business things like SEO and marketing), but the people I'm talking to (including my business partner) are often making effectively random/brash decisions and statements where I'm having to battle through contradictions and miscommunications and hurt feelings blah blah blah where the slightest misstep is a landmine when I didn't even know there was a minefield.

Anyway, any advice would be helpful, probably, I'm sure.

https://redd.it/1kb4v79
@r_php
Launched and built something with Laravel (what a great ecosystem)

So a little self promotion but equally I want to say thanks to some of the community!!

So I am a long time PHP / Laravel developer and have always enjoyed learning new stuff.

At first I wanted to see how Laravel would/could work with an LLM and after doing some reading I ended up learning about OpenAPI 3.0 Schema and Multi-Modal RAG. I hit a few obstacles with the amount of data being sent to the LLMs.

In the last few months I have built on top of Gemini, Claude and OpenAI. All have their perks and quirks.

The Prism team were and still are amazing, the Filament, Laravel12 and LiveWire are just fantastic to build on!

Finally, Laravel cloud is still lacking some features but I think it is on the right tracks.

So what did I build... Mind Jam helps brands, studios and creators understand their YouTube communities.

MindJam analyses millions of YouTube comments to instantly reveal the unfiltered voice of your audience – their true sentiment, emerging themes, and the topics they really care about.

Here is a sample analysis - https://mind-jam.co.uk/analysis/HPMh3AO4Gm0

If you want a demo, there is a link on the website.

Or just where possible be nice in the comments.

https://redd.it/1kbbphb
@r_php
Visibility blocks?

Does anyone know if there's a way to do or if there's any intention on adding visibility blocks, ala Pascal? I'm thinking something along the lines of:

public function construct(
public {
string $id = '',
DateTime $dateCreated = new DateTime(),
Cluster $suggestions = new Cluster(Suggested::class),
?string $firstName = NULL,
?string $lastName = NULL,
}
) {
if (empty($id)) {
$this->id = Uuid::uuid7();
}
}

If not, is this something other people would find nice? Obviously you'd want to make it work in other contexts, not just constructor promotion.

https://redd.it/1kbhte5
@r_php
Is the Internation PHP Conference still a thing ? Is it worth it for a WP dev ?

I work for a company that owns a big Wordpress website, my new manager is very excited with the idea of sending me around to in-site conferences, thing is I'm not used to this, so I'm just looking for worthwhile conferences to increase my knowledge and grow as a dev and at the same time enjoy this opportunity of my manager thinking that he needs to send me around that most likely won't last a long time...

I saw that before the IPC International PHP Conference was a thing, but while trying to look for references to see how worthwhile it was I could not find almost anything, so I come to you PHP folks to see if it is.

https://redd.it/1kbiw3w
@r_php
How I can initialize the db from a Dump before db migration during local db setup for development?

In my work the migrations are generated like this:
```

php bin/console doctrine:migrations:diff

```


And then any generated SQL is run manually upon db instead of `doctrine:migrations:execute` or `doctrine:migrations:migrate`. That results each developer having its own db.

Also same thing happend upon deployment as well therefore I am practically I am without any relable way of setting up db or in case ot a db reset I may lose any changes upon db.


Therefore I want to introduce a db migration procedure upon development use a schema-onlt db dump from a staging/production release and start migrating onwards. Development db would be initialized first from the db dump and then we would generate manually each change as db migration noscript.


How I can use a Db dump as an initial migration in symfony?



https://redd.it/1kbih13
@r_php
Your favorite Laravel API tools for quick setup + docs?

Hey r/laravel!

I’m playing around with APIs in Laravel and testing out [API Platform](https://api-platform.com/). It feels powerful, but I’m curious—what have you used in real projects to get an API up and running fast and generate docs automatically?

I’m especially interested in:

* Packages that handle routes, controllers, and docs with minimal setup
* Tools that keep OpenAPI/Swagger or Postman exports in sync as your code evolves
* Any gotchas, tips, or simple noscripts that save you headaches

For a bit of background, I’m building [Relaticle](https://relaticle.com/) (an open-source CRM on Laravel 12 + Filament 3), so good API docs are crucial for us.

**Share your go-to tools or workflows below—I’d love to hear what’s working for you!**

*Looking forward to learning from your experiences!*

https://redd.it/1kbtiu2
@r_php
Filament with Tailwind CSS v4

As there seems to be a lot of confusion around using Filament with Tailwind CSS v3 in Laravel projects that have Tailwind CSS v4 installed (default since Laravel 12), I decided to write a guide on setting up Vite with both versions of Tailwind CSS side by side.

If there are any questions or issues you encounter, I’m more than happy to assist in the comments. 😊

https://redd.it/1kc54ae
@r_php
Perforce reintroduce the Zend PHP Certification

The Zend PHP Certified Engineer exam is officially back.



Invest in your team’s success through this exam, which covers topics across the language and through PHP 8.4. Upon passing, all PHP Certified Engineers will receive a badge and a certificate to showcase their achievement.

Act now to access:

\- Team Discounts – Purchase two exams, get one free.

\- In-Depth Preparation – Sign up for our three Zend PHP Certified Engineer prep courses before June 30, 2025, and receive 50% off the full price.

\- Practice Exam – Familiarize your team with the test through a no-cost practice exam.



Ready to set a consistent knowledge base for your team, prove your business’s expertise, and earn an edge over the competition?



https://www.zend.com/training/php-certification-exam

https://redd.it/1kcboed
@r_php
Laravel Cloud Pricing Calculator 🧮

https://preview.redd.it/isa83t3q87ye1.png?width=1556&format=png&auto=webp&s=b3b9250b3bf8ca24f9102179c9e11fb72cec1ab3



👋🏻 Howdy r/laravel! We've heard your feedback about Laravel Cloud pricing so we've shipped a bunch of updates including a shiny new pricing calculator. This is just v1 and I would love your feedback on how we can improve it and make it better for you to estimate your Cloud costs.

https://cloud.laravel.com/pricing/calculator

Also Chris Sev published a blog post & video walkthrough of everything we've added to improve visbility into your Cloud costs, you can check those out here:

https://blog.laravel.com/5-tools-to-estimate-your-laravel-cloud-bill

https://www.youtube.com/watch?v=ujlMw-\_XGCA

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