/php:php-composer-conventionsfrom php
Enforces Composer versioning conventions: caret constraints, forbidden patterns (*, dev-master, exact versions), and update strategies. Use when modifying composer.json or running composer commands.
Ships in php. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Always use caret (^) with minor version:
"vendor/package": "^1.2"
This allows patch updates (1.2.x) and minor updates (1.x) but blocks major updates (2.x).
| Pattern | Reason |
|---|---|
"*" | No version control, can break on any update |
"dev-master" | Unstable, no reproducibility (external packages) |
"1.2.3" | Too strict, blocks security patches |
">=1.0" | Too permissive, allows breaking changes |
"dev-main as x.y.z" is allowed only for internal packages (acme/*) during active development:
"acme/ui-bundle": "dev-main as 0.1.0"
Always try without --with-all-dependencies first:
composer update vendor/package
Only use if the standard update fails due to dependency conflicts:
composer update vendor/package --with-all-dependencies
^ with the minor version# Check available versions
composer show vendor/package --all
# Add with correct constraint
composer require vendor/package:^1.2
When encountering "*" in composer.json:
composer show vendor/packagecomposer show vendor/package --all"*" with "^X.Y" (latest minor)composer update vendor/package| Situation | Action |
|---|---|
| New dependency | composer require vendor/package:^X.Y |
| Update single package | composer update vendor/package |
Fix "*" constraint | Replace with "^X.Y", then update |
| Dependency conflict | Only then use --with-all-dependencies |
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/php-8-0ACTIVATE when calling a constructor, method or function with four or more arguments in a PHP 8.0+ project — value objects, contract requests, factories, projections, test fixtures. Covers: mandatory named arguments from the fourth argument on. DO NOT use for: calls of three arguments or fewer, PHP 8.1 features (see php-8-1), PHP 8.2 features (see php-8-2), PHP 8.3 features (see php-8-3)./php-8-1ACTIVATE when passing a method as a callback in a PHP 8.1+ project — event listeners, validator callbacks, Twig functions, array_map/usort callables. Covers: mandatory first-class callable syntax (`$this` method reference with `(...)`) over array/string callables. DO NOT use for: general PHP syntax, PHP 8.2 features (see php-8-2), PHP 8.3 features (see php-8-3)./php-8-2ACTIVATE when writing PHP classes, DTOs, or value objects in a PHP 8.2+ project. Covers: mandatory readonly class usage (class-level, not per-property). DO NOT use for: general PHP syntax, PHP 8.3 features (see php-8-3)./php-8-3ACTIVATE when writing PHP class constants in a PHP 8.3+ project. Covers: mandatory typed class constants and default visibility. DO NOT use for: general PHP syntax, PHP 8.2 features (see php-8-2)./php-code-conventionsACTIVATE whenever writing or modifying PHP code in src/, creating controllers, services, repositories, specifications, or any production PHP class. ACTIVATE for code review, formatting questions, or 'coding standards'. Provides PHP-specific code style examples for the cross-language rules defined in craft:code-style-principles, plus PHP-specific rules (no empty(), nullsafe operator access, nowdoc, constructor parameter ordering with promoted properties). DO NOT use for: test code conventions (see phpunit:php-test-conventions), SQL formatting (see php-sql-conventions)./php-ddd-conventionsACTIVATE when writing or modifying domain layer code in PHP/Symfony, creating value objects, specifications, domain services, or domain interfaces. ACTIVATE for 'domain', 'DDD', 'hexagonal', 'ports and adapters', 'domain purity' in PHP context. Provides PHP/Symfony-specific examples for cross-language OOP DDD principles defined in craft:ddd-principles. DO NOT use for: infrastructure/controller code, Doctrine mapping, general architecture questions.npx claudepluginhub fabiensalles/claude-marketplace --plugin phpOther plugins' skills for the same job