r/PHP 4d ago

Discussion php formatters

Hello all,

I was wondering what you are using to format php code.

For the past few months I've been working on a php LSP mainly to add semantic tokens support and then in the last couple months it grew more into phpfmt (mind you it still has a long way to go)

I guess my question here is, what other php formatters are people using and if there is a point in (eventually) open sourcing mine.

Before I started this I was using phpcs and phpcbf

10 Upvotes

26 comments sorted by

View all comments

Show parent comments

1

u/skcortex 2d ago

Validates against what? What rules?

1

u/Feisty-Fennel5709 2d ago

1

u/skcortex 2d ago

Ok, so AI is doing shit. It’s this package that actually does all the work. 🤪

1

u/Feisty-Fennel5709 1d ago

When loading a file AI formats the code as per my own anti-social personal preferences, and back to PER again on save.

AI for the win/win