Download the PHP package skriva/statamic without Composer

On this page you can find all versions of the php package skriva/statamic. 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

Skriva — Statamic addon

Packagist Version CI

Statamic addon that lets Skriva publish generated articles into your collections. Statamic's REST and GraphQL APIs are read-only, so publishing needs a small addon on the Statamic side — the same shape as the Payload plugin, speaking the same wire contract (FieldNode schema tree + mapped publish data). Block sets, SEO fields, relations and enums are discovered from your blueprint, never hardcoded.

Requirements

Install

From the Statamic project root:

Then set the shared token in the Statamic site's .env:

Configuration

Optional, all via .env:

Publish the config file with php artisan vendor:publish --tag=ai-content-config to edit the values directly.

Limitation: the new-tab treatment only applies to bard fields. A markdown fieldtype stores the markdown source verbatim and markdown has no target attribute — add the ExternalLink extension to your site's own markdown parser config if you want the same there.

Connect to Skriva

In Skriva, open your site's Connection page, choose destination "Statamic", paste the site's base URL and the same token, and pick a collection.

Endpoints return 503 while the token is unset — nothing is exposed without it.

Endpoints

All require Authorization: Bearer <token> and are rate-limited (60/min). No session, no CSRF.

GET /ai-content/manifest

Connection test + collection discovery. Unlike Payload (plugin owns one target) this addon serves every collection; Skriva lists them and the user picks.

meta.version is this addon's version; meta.capabilities are the behavior flags Skriva gates on (it never compares version numbers). The same meta rides along on /schema.

GET /ai-content/schema?collection=<handle>

The collection's default entry blueprint as a FieldNode tree — identical wire shape to the Payload plugin's /schema. Fieldtype mapping:

Statamic FieldNode
bard, markdown richText (markdown slot; bard converted on publish)
text, slug text — textarea → textarea
integer, float, range number — toggle → checkbox, date → date
select, radio, button_group, checkboxes select with options (+ hasMany)
replicator blocks (sets = block palette, grouped sets flattened)
group group — grid → array
entries, terms relationship + candidate options (cap 100, cappedOut above)
assets upload + isMedia (never AI-filled)
users, link, section, html, … omitted

Sets/groups whose required fields include media are flagged unsatisfiable so Skriva's compiler drops them instead of letting the AI attempt them. Reserved handles (slug, date, parent) are omitted — the entry's slug and date are managed by /publish itself.

Each field may also carry:

POST /ai-content/publish

data follows the /schema semantics: richText slots carry GitHub-flavored markdown, replicator values are {blockType, …fields} rows. Conversion on write:

Behavior:

Response: { "ok": true, "id": "<entry-id>", "url": "<absolute-url>", "editUrl": "<cp-url>", "created": true }.

GET /ai-content/entry?id=<entry-id>

Whether one entry is live yet — how Skriva notices that a parked draft was published by hand.

published reflects the entry's real visibility, not just its published flag: a scheduled (future-dated) or expired entry answers false. url is null for collections without a route, and only meaningful while published — a draft's public URL 404s. A deleted entry answers 404.

Development

Releasing

The addon's version lives in ServiceProvider::VERSION (there is no version field in composer.json — releases are git tags). Bump that constant, add the CHANGELOG entry, then tag the commit with the same number; meta.version on /manifest and /schema must match the tag.

License

MIT


All versions of statamic with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
statamic/cms Version ^5.0 || ^6.0
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 skriva/statamic contains the following files

Loading the files please wait ...