Download the PHP package sanderjn/statamic-content-agent without Composer

On this page you can find all versions of the php package sanderjn/statamic-content-agent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package statamic-content-agent

Agentic

A Statamic starter kit that lets a non-developer edit the site by talking to an AI agent (Claude Code or similar), and makes it so the agent can't break the site: not the code, not the schema, not production.

For a one-line tweak, the Control Panel is already a fine editing experience. Agentic isn't trying to replace it there. Where it earns its keep is volume and structure: redoing a whole page, duplicating a page and adapting it, drafting a batch of blog posts, running a site-wide tone pass. Your client says "here are three new team members, add them all to the team page in our usual tone" and the agent does the repetitive work across the underlying content. Agentic supplies the guardrails, the validation, and the publish flow that make that safe.


How it works

Statamic content is flat files: YAML and Markdown under content/. An LLM is good at rewriting plain text, so an agent can edit that content directly. Two things make it trustworthy:

  1. The agent knows exactly what it's allowed to do, and
  2. Nothing it produces can reach production without passing automated checks.

What the agent reads

What catches mistakes

Statamic does not validate flat-file content when it loads: a malformed edit renders wrong or blank, silently. That's the gap Agentic closes:

What stops it going off the rails

Your client, ten minutes after you gave them full repo access and an agent without guardrails. Agentic exists so this call never happens.

Guardrails at two levels, one for smooth UX and one that's the actual guarantee:

The guardrail machinery itself (the commands, the validator, the path allowlist) is covered by the kit's own test suite. See tests/ and .github/workflows/ci.yml.

How changes go live

A typical exchange

Client: "Here's an overview doc for our six services. Set up a page for each one, in our tone."

The agent switches to staging and pulls the latest, checks content/agent-reference.md to see which blocks exist and what fields they take, then builds all six pages from the existing blocks: copying an existing page as a starting point, wiring each into the page tree, writing the copy in the site's voice. It runs content:validate, commits, and pushes to staging, then shares the preview link so the client can review the whole set at once. Later they say "looks good, publish it" and the agent opens one PR.


One source of truth: the page builder

Blocks are defined in one place (the page_builder fieldset) and everything else derives from it. To add a block:

  1. Add a set to resources/fieldsets/page_builder.yaml.
  2. Add resources/views/blocks/<set-handle>.antlers.html: the filename must equal the set handle.
  3. Run php artisan content:catalog and php artisan content:validate.

That's the whole contract. The agent's catalogue, the validation rules, the Control Panel, and the front-end rendering all update automatically from the fieldset: no switch statement, no second registry to keep in sync.

The kit ships with a single example block (rich_text) to demonstrate the pattern. Delete it and add your own.


Install

Create a new site from the kit:

statamic new my-site sanderjn/statamic-agentic

…or add it to an existing Statamic project:

php please starter-kit:install sanderjn/statamic-agentic

Set up

After install, follow SETUP.md in your new site's root (the kit ships it there; in this repo it lives at export/SETUP.md). It's a short, ordered checklist:

  1. Run php artisan agentic:setup — stamps your project details into the agent's brief, the CI workflow, and the hand-over prompt.
  2. Create the GitHub repo with staging/main branches.
  3. Turn on branch protection for main (free personal accounts need a public repo for this — SETUP.md has the trade-off).
  4. Point your host at the branches.
  5. Build the site the way you always would — on staging, through the same PR flow the agent uses.
  6. Hand over to your editor: two prerequisites, then one emailed prompt from ONBOARDING.md (see below).

Then run your agent from the project root: the shipped root CLAUDE.md imports content/AGENTS.md, so Claude Code picks up the content-editor brief automatically (other agents: point them at content/AGENTS.md yourself).

Hand over to your editor

The easiest setup, and the one to reach for by default: the editor installs almost nothing — just Claude Code; their own agent sets up the rest. It edits the flat-file content and pushes to staging, your deploy pipeline builds and publishes it, and the editor reviews on the preview URL. Because you own the deployment, everything technical — the front-end rebuild, the content-index refresh — stays on your side, not the client's.

You can instead give the editor a local setup (for instant validation, or a localhost preview that doesn't wait on a deploy), but that puts more on their machine. Either way, hand-over is two prerequisites — the client's own GitHub account with push access, and Claude Code signed in on their own paid account (flag that cost up front) — and then one email: the stamped prompt from ONBOARDING.md. Their agent installs gh, walks them through the GitHub sign-in, clones the repo, sets a git identity that stays off the maintainer list, and verifies push access.

SETUP.md walks through it, tier by tier. Then the editor runs claude, content/AGENTS.md takes over, and the loop is: they describe a change in plain words → the agent edits and pushes to the preview → they review → they say "publish" and the agent opens one PR for you to approve.

Requirements & notes

For developers

The kit has exactly one opinion: pages are built from blocks defined in a single fieldset (page_builder.yaml) — the "one source of truth" above. Everything else is yours: the kit ships one example block (rich_text) and a minimal layout. Build the site the way you always would and the agentic layer rides along automatically. You work on staging and release through the same PR flow as the agent — merge those PRs with a merge commit, not squash, so staging and main don't diverge (SETUP.md step 5 has the details).

The local edit-guard also applies to your own Claude Code sessions. Set AGENTIC_DEVELOPER=1 (via env in an untracked .claude/settings.local.json) to lift it while you build.

License & contributing

MIT: use it, strip it down, rebuild it however you like. If you improve the experience, or learn something worth sharing from deploying it for a client, open an issue or PR so the improvement reaches everyone.


All versions of statamic-content-agent with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sanderjn/statamic-content-agent contains the following files

Loading the files please wait ...