| name | php-style |
|---|---|
| description | PSR-4 layout, namespaces, docblocks, PHP compatibility, src/ structure for this SDK. |
- Editing any PHP under
src/ortest/. - Adding classes or changing namespace boundaries.
- Library code:
src/with namespaceContentstack\...matching PSR-4 paths. - Stack / Delivery:
src/Stack/(e.g.Stack.php,ContentType/,Assets.php,BaseQuery.php). - Config / errors / support:
src/Config/,src/Error/,src/Support/. - Entry point:
src/Contentstack.phpexposes static factory and utils-facing helpers.
- Honor minimum PHP from
composer.json; avoid syntax and standard-library features unavailable on that floor unless the constraint is explicitly raised. #[\AllowDynamicProperties]and legacy patterns may exist for backward compatibility—do not remove without a semver plan.
- Existing files use PHPDoc (
@param,@return,@package, etc.); new public APIs should include equivalent documentation for IDEs and Doctum.
- Classes:
PascalCasematching file names under PSR-4. - Methods:
camelCaseconsistent with surrounding code. - Preserve established public names even when imperfect unless doing a semver-major cleanup with maintainer agreement.
- Prefer
usestatements for classes in other namespaces; keep public surface explicit (public methods on classes intended for consumers).
skills/framework/SKILL.md(Composer, autoload)skills/testing/SKILL.md