Loading...
Loading...
Craft CMS 5 PHP coding standards and conventions. Triggers: writing PHP classes, PHPDoc blocks, @author, @since, @throws, section headers (=========), defineRules(), beforePrepare(), addSelect(), MemoizableArray, DateTimeHelper, Carbon, ECS check-cs, PHPStan, ddev craft make, Twig templates, form macros, translations Craft::t(), enum definitions, commit messages. Always load when writing, editing, or reviewing any PHP or Twig code in a Craft CMS plugin or module.
npx skill4agent add michtio/craftcms-claude-skills craft-php-guidelinesaddSelect()beforePrepare()**addSelect()$_instances$_items$_sectionsuse ...\records\MyEntity as MyEntityRecord;ResaveElementsResaveElementsJobdeclare(strict_types=1)ecs.php@authorstring|null?stringparent::defineRules()DateTimeHelperCarbon@throwsweb_fetch@throws@author@since// =========================================================================declare(strict_types=1)_registerCpUrlRules()$_itemsaddSelect()beforePrepare()DateTimeHelperCarbonddev craft make <type> --with-docblocksddev composer check-csddev composer phpstan// Traits
// Const Properties
// Static Properties
// Public Properties
// Protected Properties
// Private Properties
// Public Methods
// Protected Methods
// Private MethodsEntriesVolumesUsersAuthSearchGcResaveElementsUpdateSearchIndexSectionEventRegisterUrlRulesEventDefineHtmlEventDeleteDuplicateSetStatusPropagationMethodCmsEditionddev composer check-csddev composer phpstan@throws