<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/xk0g4pe9g" -->

---
title: Using phpactor as a language server for WordPress...
description: A practical guide to configuring phpactor as a Language Server Protocol (LSP) tool for WordPress development. Since WordPress doesn't follow PSR-4 or use...
canonical: https://daily.dev/posts/xk0g4pe9g
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Using phpactor as a language server for WordPress development | daily.dev
og:description: A practical guide to configuring phpactor as a Language Server Protocol (LSP) tool for WordPress development. Since WordPress doesn't follow PSR-4 or use...
og:url: https://daily.dev/posts/xk0g4pe9g
og:image: https://api.daily.dev/og/posts/XK0g4pE9G.png
og:image:alt: Post cover image
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Using phpactor as a language server for WordPress development

**[PHP Dev](https://daily.dev/sources/phpdev)** · [@damienseguy](https://daily.dev/damienseguy) · 2 upvotes · 0 comments

## Summary

A practical guide to configuring phpactor as a Language Server Protocol (LSP) tool for WordPress development. Since WordPress doesn't follow PSR-4 or use Composer's autoloader, phpactor needs extra configuration to discover WordPress core symbols. Two approaches are covered: setting indexer.include_patterns in .phpactor.json to index WordPress core files while excluding them from diagnostics, and using the php-stubs/wordpress-stubs Composer package as an alternative to provide type information without indexing the actual source files.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.dannyvankooten.com/blog/2026/using-phpactor-with-wordpress/>

## Similar posts on daily.dev

- [What's missing from your PHP development environment](https://daily.dev/posts/what-s-missing-from-your-php-development-environment-2wtinewrn) · Laravel News · 1 upvotes · 0 comments
- [Announcing Symfony Language Tools, the Official Symfony LSP Server \(Symfony Blog\)](https://daily.dev/posts/announcing-symfony-language-tools-the-official-symfony-lsp-server-symfony-blog--ni87i9xqz) · Symfony · 4 upvotes · 0 comments
- [PhpStorm Plugins You Might Not Know](https://daily.dev/posts/phpstorm-plugins-you-might-not-know-t0wfpxc0e) · JetBrains · 7 upvotes · 0 comments
- [Introducing Laravel PAO: Cleaner Output for AI Agents](https://daily.dev/posts/introducing-laravel-pao-cleaner-output-for-ai-agents-iiftnxequ) · Laravel · 16 upvotes · 3 comments

---

Tags: [#php](https://daily.dev/tags/php), [#wordpress](https://daily.dev/tags/wordpress)

[View this post on daily.dev](https://daily.dev/posts/xk0g4pe9g)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/xk0g4pe9g","headline":"Using phpactor as a language server for WordPress development","text":"Shared: Using phpactor as a language server for WordPress development","url":"https://daily.dev/posts/xk0g4pe9g","datePublished":"2026-02-26T12:29:44.846Z","dateModified":"2026-02-26T12:30:36.175Z","author":{"@type":"Person","name":"Damien seguy","url":"https://daily.dev/damienseguy","image":"https://media.daily.dev/image/upload/s--nPbjKqol--/f_auto,q_auto/v1698422671/avatars/avatar_G85JhYcDxAg024Omc8Rlp","description":"PHP developer passionate about deep language knowledge, testing, static analysis, and sustainable it","worksFor":{"@type":"Organization","name":"Exakat","logo":"https://media.daily.dev/image/upload/s--ibtl6fze--/f_auto/v1749051132/companies/exakat"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":38200}},"image":"https://media.daily.dev/image/upload/s--qPvKM23u--/f_auto/v1722860399/public/Placeholder%2009","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/E8mu1Bsk4"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/phpdev","name":"PHP Dev"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"PHP Dev","item":"https://daily.dev/squads/phpdev"},{"@type":"ListItem","position":3,"name":"Using phpactor as a language server for WordPress development"}]}
```

