php-conventions
БесплатноБез исполняемых скриптовНе проверенPHP code conventions covering PHP 8.2+ strict types, PSR-12 formatting, PHPStan/Psalm static analysis, PHPUnit, Composer dependency management, PSR-4…
от Goldziher★ 182 звезды на GitHubОб этом скилле
- PHP 8.2+,
declare(strict_types=1), typed properties, union types, enums, readonly classes. - Formatting: PSR-12 via a fixer (e.g., PHP_CodeSniffer/phpcbf or php-cs-fixer). Static analysis: a strict analyzer (e.g., PHPStan at max level or Psalm).
- Testing: PHPUnit with
@dataProvider, 80%+ coverage. - Error handling: specific exceptions extending
RuntimeException, constructor promotion for value objects. - First-class callable syntax (
$fn = strlen(...)) for callbacks. Arrow functions (fn() =>) for simple closures. - Dependencies: Composer with
composer.lockcommitted,^version constraints.composer auditin CI. - Security: require
roave/security-advisoriesas dev dependency to block vulnerable packages. - PSR-4 autoloading exclusively — no
require/includefor classes. - Intersection types for strict parameter contracts. Named arguments for readability.
- Anti-patterns:
@suppression,eval(), dynamic property access,extract().
Установить php-conventions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл php-conventions?
PHP code conventions covering PHP 8.2+ strict types, PSR-12 formatting, PHPStan/Psalm static analysis, PHPUnit, Composer dependency management, PSR-4 autoloading, and security. Load when writing or reviewing PHP code.
Как установить скилл php-conventions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл php-conventions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic