uams-web / aether-knowledge-base
Knowledge bases and knowledge base tags for UAMS Statamic sites.
Package info
github.com/UAMS-Web/aether-knowledge-base
Type:statamic-addon
pkg:composer/uams-web/aether-knowledge-base
Requires
- php: ^8.4
- statamic/cms: ^6.35
- uams-web/aether-page-builder: >=0.1 <1.0
Requires (Dev)
- cweagans/composer-patches: ^2.0
- driftingly/rector-laravel: ^2.6
- larastan/larastan: ^3.13
- laravel/pint: ^1.32
- orchestra/testbench: ^11.3
- pestphp/pest: ^5.3
- pestphp/pest-plugin-phpstan: ^5.2
- phpstan/phpstan-mockery: ^2.0
- rector/rector: ^2.7
- uams-web/patches-orchestra-testbench-core: ^1.1.0
- uams-web/patches-pest-plugin-mutate: ^1.4.0
- uams-web/patches-statamic-cms: ^1.4
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-01 15:16:55 UTC
README
A Statamic add-on that holds knowledge bases and knowledge base tags for UAMS Statamic sites. It is one of the Aether add-ons: each owns one area of content, so that the sites which need it share one implementation.
What it provides
- Blueprints for the
knowledge_basescollection (knowledge_base,topicandarticle) and theknowledge_base_tagscollection (knowledge_base_tag), served under each collection's own handle throughBlueprint::addNamespace. The collections themselves, their routes and their entries stay in the host's content. - Views for the knowledge base, topic and article templates, their partials and the mount-redirect error partial, served after the host's own views so a host copy still wins.
- The topics block,
uamsweb_block_kb_topics, with its fieldset and views, registered with the page builder (uams-web/aether-page-builder). - Query scopes:
knowledge_base_only,knowledge_base_topic_only,knowledge_base_article_children,knowledge_base_subtree_articlesandvalid_article_parent. - Tags:
mounted_knowledge_basesandknowledge_base_mount_redirect. - Listeners that validate a knowledge base entry and its tree when saved, and that keep mounted knowledge base URIs in step with their mount-parent pages.
- Computed fields on
knowledge_bases: the structural flags and counts, the ancestor-inherited settings, and the article view and like counts. - Article engagement: the
kb.articles.viewandkb.articles.reactendpoints (/!/kb/articles/{id}/viewand/react), theirkb-engagementrate limiter and thearticle_engagement_countstable.
What stays in the host
Four things need the host application and are not provided here. A host that installs the add-on wires them:
- The entry class.
UAMSWebAetherKnowledgeBase\Entries\KnowledgeBaseEntrymust be the class Statamic buildsknowledge_basesentries as, on every read path (the entry contract binding and the Stache store). The add-on cannot bind it without replacing the host's own binding for every other collection. - The sitemap inclusion computed for
knowledge_bases, which reads the host's orphaned-ancestor resolver. - The Control Panel strings under
messages.knowledge_bases_collection_create_entry. - The article engagement script and styles, which the host's front-end build compiles.
docs/DECISIONS.md records why each stays.
Requirements
- PHP 8.4 or later
- Statamic 6.35 or later
uams-web/aether-page-builder0.1 or later, which the add-on registers its block withuams-web/patches-statamic-cms1.4 or later in the host, which serves a collection's blueprints from an add-on (UAMS-Web/uams-statamic#1608)
Installation
composer require uams-web/aether-knowledge-base
The package is listed under extra.laravel.providers in composer.json, so a host application discovers its service provider (UAMSWebAetherKnowledgeBase\ServiceProvider) with no further step.
To change the add-on's settings, publish its configuration file to the host's config/ directory:
php artisan vendor:publish --tag=aether-knowledge-base-config
License
MIT. See LICENSE.
Development
Developing against a host application is covered in the development guide, and the Packagist and Marketplace steps in the submission checklist. The reasons behind the repository's decisions are in the decision log.