GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — contentstack-php/AGENTS.md at development · contentstack/contentstack-php

Expand file tree

/

AGENTS.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
49 lines (35 loc) · 2.87 KB
/

AGENTS.md

Copy path

File metadata and controls

49 lines (35 loc) · 2.87 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Contentstack PHP SDK – Agent guide

Universal entry point for anyone automating or assisting work in this repo—AI agents (Cursor, Copilot, CLI tools), reviewers, and contributors. Conventions and detailed guidance live in skills/*/SKILL.md, not in editor-specific config, so the same instructions apply whether or not you use Cursor.

What this repo is

  • Name: contentstack-php
  • Purpose: PHP library for the Contentstack Delivery API—stack initialization, content types, entries, assets, queries, sync, live preview config, and RTE rendering via the optional contentstack/utils package.
  • Out of scope: This package is not the Management API client; it focuses on read/delivery patterns documented in the SDK README.

Tech stack (at a glance)

Area Details
Language PHP (see composer.json require.php; supports legacy 5.5+ per package)
Layout PSR-4 Contentstack\ → src/; helper src/Support/helper.php
Tests PHPUnit 10 → test/ (phpunit.xml)
Docs Doctum → composer run generate:docs (config.php)
Dependency contentstack/utils for Utils, Option, RTE rendering helpers

Commands (quick reference)

composer install
composer test
# or: vendor/bin/phpunit
composer run generate:docs

Coverage and reports (when configured in phpunit.xml) write under ./tmp/.

Where the real documentation lives: skills

Read these SKILL.md files for full conventions—this is the source of truth for implementation and review:

Skill Path What it covers
Development workflow skills/dev-workflow/SKILL.md Branches, CI expectations, Composer test/docs, PR notes
Contentstack PHP SDK / Utils skills/contentstack-utils/SKILL.md Contentstack::Stack, Stack, queries, entries, assets, regions, contentstack/utils, semver
PHP style & repo layout skills/php-style/SKILL.md PSR-4, namespaces, docblocks, src/ layout, PHP version constraints
Testing skills/testing/SKILL.md PHPUnit, test/ layout, constants/helpers, credentials hygiene
Code review skills/code-review/SKILL.md PR checklist (API, errors, deps/SCA, tests), Blocker/Major/Minor
Framework / build skills/framework/SKILL.md composer.json, autoload, Doctum, optional CI workflows

An index with short “when to use” hints is in skills/README.md.

Using Cursor

If you use Cursor, .cursor/rules/README.md only points to AGENTS.md—same source of truth as everyone else; no separate .mdc rule files.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.