Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By xobotyiv1.1.1MITIn 1 marketplace
Produces PHP 8.5 code using modern types, enums and property hooks, with PHPUnit and Pest test conventions. Uses Intelephense for code navigation instead of text search; it must be installed separately via npm.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
php-8-5, phpunit, pest, intelephense, lsp, code-navigation, php-conventions, conventions ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
PHP 8.5 code that uses the modern language and current PHPUnit and Pest conventions, navigated through Intelephense instead of text search.
PHP has evolved dramatically — union types, enums, readonly classes, property hooks, Fibers, the pipe operator — but
Claude's defaults often lag behind the current state of the language. Without explicit guidance, Claude may produce code
using outdated patterns (no strict_types, switch instead of match, string constants instead of enums,
getter/setter methods instead of property hooks), miss modern features (asymmetric visibility, #[Override], typed
constants, #[NoDiscard]), or use inconsistent conventions across a codebase.
PHP's OOP model is rich but easy to misuse — inheritance where composition fits, traits as interface substitutes, magic
methods where typed properties work. Testing has its own pitfalls: PHPUnit 11 dropped annotations for attributes,
deprecated createMock for stubs-only use cases, and requires static data providers.
Beyond conventions, Claude defaults to text-based code search (Grep/Glob) even when a language server can provide precise, namespace-aware navigation. This leads to false positives in large codebases and missed references across namespace boundaries.
This plugin provides three skills and an Intelephense LSP configuration that give Claude deep PHP fluency targeting
8.5+. The php skill covers core language conventions (naming, type declarations, enums, OOP, closures, error
handling), modern features (pipe operator, property hooks, asymmetric visibility, lazy objects, #[NoDiscard]), project
structure (Composer, PSR-4, PER-CS formatting), and LSP-first code navigation rules. The phpunit skill covers PHPUnit
testing conventions (test structure, data providers, assertions, mocking/stubs, attributes, configuration). The pest
skill covers the Pest framework — function-style tests, the expect() API, datasets, and architecture/mutation/
type-coverage/browser testing — as a layer over phpunit. All three skills include reference guides for extended
patterns.
The bundled Intelephense LSP configuration enables semantic code intelligence — go to definition, find references, hover
for type info, workspace symbol search — directly in Claude Code for .php files.
Install Intelephense (the PHP language server) and ensure it's available in PATH:
npm install -g intelephense
Then install the plugin:
/plugin install php --marketplace xobotyi/cc-foundry
Enforces modern PHP conventions and idioms across all PHP code. Covers naming (PSR-1/PER-CS conventions), type
declarations (union, intersection, DNF types, typed properties, typed constants), enumerations (backed enums, interface
implementation, dynamic case access), classes (readonly, constructor promotion, property hooks, asymmetric visibility,
#[Override], lazy objects), functions (match expressions, pipe operator, first-class callables, arrow functions, named
arguments), error handling (specific catches, exception chaining, #[Deprecated], #[NoDiscard]), strings and arrays
(modern API functions from 8.4/8.5), formatting (PER-CS baseline), packaging (Composer, PSR-4 autoloading, project
structure), and LSP-first code navigation.
Includes reference guides for the type system (variance, coercion, strict mode), OOP patterns (traits, interfaces, property hooks, enums, magic methods), concurrency (Fibers, generators), and packaging (composer.json schema, PSR-4 mapping, file header conventions).
Use when: writing, reviewing, refactoring, debugging, or exploring any PHP code.
Enforces PHPUnit 11+ testing conventions using PHP 8 attributes exclusively (annotations deprecated in 11, removed in
12). Covers test structure (naming, arrange-act-assert, granularity), fixtures (setUp/tearDown lifecycle,
#[Before]/#[After] attributes), data providers (#[DataProvider], #[TestWith], generators, named datasets),
assertions (assertSame over assertEquals, exception testing, string/float assertions), mocking (stubs vs mocks
distinction, createStub for returns-only, createMock for expectations, MockBuilder), attributes (test metadata,
skip/conditional, coverage, fixture, behavior), test organization (unit/integration split, directory structure, test
suites), and configuration (phpunit.xml strict settings, source element, coverage).
Use when: writing or reviewing PHP tests with PHPUnit.
7-day copy clicks
npx claudepluginhub xobotyi/cc-foundry --plugin phpPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.