ArtisanPack UI
DocsSpecificationQuick Start Guide

Quick Start Guide

Specification v1.0.0

Get the specification synced and your first check running in a few minutes. This creates the and tables. The command downloads the OKF bundle, writes the...

Get the specification synced and your first check running in a few minutes.

Step 1: Install the Package

composer require artisanpack-ui/specification

Step 2: Run Migrations

php artisan migrate

This creates the specification_topics and specification_snapshots tables.

Step 3: Sync the Specification

php artisan keystone:spec-sync

The command downloads the OKF bundle, writes the snapshot to storage/artisanpack/specification/snapshot, upserts every topic, and builds the search index. Running it again with an unchanged archive does nothing, so it is safe on cron. The package also schedules it weekly. See Syncing the Specification.

Step 4: Look Up a Topic

$topic = specification()->topic( 'foundations/doctype' );

echo $topic->title;           // "The HTML doctype"
echo $topic->status->label(); // "Required"

// Topic text is CC BY 4.0. Render it through the renderer so attribution is always attached.
echo specification()->render( $topic )->toHtml();

Step 5: Run a Check

Enable the in-package reference check in config/artisanpack/specification.php:

'checks' => [
    \ArtisanPackUI\Specification\Checks\Foundations\DoctypeCheck::class,
],

Then run it against your site:

php artisan keystone:spec-check --category=foundations --url=https://example.com

Next Steps

Stay in the Loop

Monthly tips, tutorials and package updates — plus a free Quick Start cheat sheet.

Subscribe
Edit this page on GitHub