#phpactor

2025-03-28

#phpactor vs #intelephense

This was a useful summary
yarnaudov.com/phpactor-vs-inte

Although last time I did this test phpactor's performance noticeably lagged and that post does not talk about performance at all. I *want* to use phpactor because it's #openSource

Which is best for you and what do you like about it? There's PHPStan too but I'm never sure if that's something different or an equivalent. Boosts welcome

#php #IDE #webDev

2025-03-18

C'est en forgeant qu'on devient forgeron, mais pour transformer #neovim en #Symfony #IDE comment fait-on ?

videos-libr.es/w/a89M83oh2DXup

Bon pour moi, la question qui reste, c'est plutôt pour déployer #PhpActor comment fait-on ?

$ cd ~/home/you/somewhere
$ git clone github.com/phpactor/phpactor.g
$ cd phpactor
$ composer install
$ cd /usr/local/bin

Et là, nada :(

#neovim #mouseless #editor

4/6

Daniel Rotterdanrot
2025-01-15

Probably the biggest issue for me is that when using with auto completing variables always results in two dollar signs, which is incredibly annoying for obvious reasons. I am going to write an issue about this the next days, since this is obviously a bug (not sure if in or though). But there are also other things missing.

Woozle Hypertwinwoozle@toot.cat
2025-01-13

An observation: #phpactor is nifty but also often inaccurate.

(in this case: claiming an imported interface is never used, when in fact it is used in an is_subclass_of() check about a dozen lines later. It's also grousing about a called method in a trait not being declared in that same trait... but that's the thing about traits: there's no syntax to say "this trait should only be used by class X" or "this trait implements interface Y"... and if you declare the method as abstract, PHP might scream "collision!" when you use the trait. ...or is that only for non-abstract methods? Anyway, it gets ambiguous for me, so I avoid doing that.)

Quinn Comendantcom
2024-10-24

@phpactor How do I disable some diagnostic features in phpactor? I tried adding this to my phpactor.json to no effect:

"diagnostics.undefined_variable.enabled": false,
"diagnostics.unresolvable_name.enabled": false

The Diagnostics page doesn't mention how to use these keywords in the config file. phpactor.readthedocs.io/en/mas

2024-03-17

TIL that `$http_response_headers` is a magic variable that magically appears in the local scope when you use a HTTP wrapper in PHP 😍 it's the sort of thing I want to say "won't fix" for in #phpactor

Christian Tietzectietze
2024-03-12

@godlike I'm currently switching between (paid) and -- I'd love a combination of both. :)

Udovič Arns (zordsdavini)zordsdavini
2023-10-06

First PR accepted. Allow to set own config for php-cs-fixer

Second is coming... Run php-cs-fixer from docker wrapper

Udovič Arns (zordsdavini)zordsdavini
2023-08-12
2023-07-22

@dantleech @phpactor

I've set up #neovim with #phpactor (p) and another with #intelephense (i) I used Mason to install each.

What I noticed:

- The calculated root_dir fails for (p); it uses PWD

- BOTH give me signature help and completions (p) is slower and seems to crash on providing signatures for completion.

- BOTH let me jump to definition, though (i) is noticeably faster at this.

- Far fewer diagnostics from phpactor (no static analysis? Perhaps I need to add PHPStan as well?)

A screenshot of 2 neovim instances, top running intelephense, bottom phpactor. The top one shows two errors in my function that is supposed to take a StdClass object and return one but returns a string. The second error shows the function being called with a string. The Phpactor version does not show any errors.
2023-03-23

Using an #LSP server in #neovim for working with #Moodle has accelerated my workflow, but from time to time jumping to certain function declarations fails while still pushing one CPU core to 100 percent.

Maybe #phpactor is unfit for Moodle’s codebase? It also gives many false errors.
I might try #phan or #psalm instead, or even just use #ctags again.

#php #nvim #webdev

2023-03-18

#phpactor is fast enough for me on most projects, but I tried contributing to PHPstan the other day and it was unusable (big, complicated files). So going to invest some time into making it more efficient. Esp. now I'm temporarily liberated from work responsibilities :D

Len :tootsie: 🍉len@toot.si
2023-01-10

🆗 some follow ups. I've uninstalled the #intelephense npm package and I'm now connecting to #lsp provided by #phpactor installed globally.

Sadly I wasn't able to use felixfbecker/language-server (as described in docs) since it's development is discontinued and it is not #php8 compatible.

develop.spacemacs.org/layers/+

I'm still missing completion and probably some other functionalities I'm unaware of.

If only I'd find & fix the intelephense issue 🙏 .

2022-11-17

Written a bit of a silly blog post about the Phpactor Container. - The Best Container: dantleech.com/blog/2022/10/17/ not really sure I make my point though #php #phpactor

2022-11-09

Quick reminder that you can sponsor some great developers on #Github for their FOSS projects.

I personally sponsor each month @dantleech and @ondrejmirtes for their a-ma-zing work on respectively #phpactor and #phpstan.

If we all give 5€ per month to the creators of #FOSS projects we use and love, it can make a huge difference. ❤️

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst