Download the PHP package searsandrew/series-wiki without Composer
On this page you can find all versions of the php package searsandrew/series-wiki. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download searsandrew/series-wiki
More information about searsandrew/series-wiki
Files in searsandrew/series-wiki
Package series-wiki
Short Description Series-agnostic wiki backend toolkit for Laravel (spoiler gates, templates, timelines, link suggestions).
License MIT
Informations about the package series-wiki
SeriesWiki (Laravel package)
SeriesWiki is a series-agnostic, spoiler-safe wiki backend toolkit for Laravel. It provides a block-based content model with:
- Spoiler gating (work/chapter gates) with safe/full block bodies
- Timeline filtering (year/era slices) at the block level
- Variants (faction/perspective switching) driven by data tables (no hardcoding)
- Templates that seed entries with required blocks by entry type (e.g. planet/species/ship)
- Internal link suggestions via a crawler + review/apply workflow
- Search API backed by crawler snapshots (
safeandfullmodes) - Validation for entry meta + block payloads (extensible via config)
This package does not include a UI/editor. Your application provides the admin/editor experience.
Install
Publish config + migrations:
Core Concepts
- Series: A wiki universe / series namespace (e.g. “Stellar Empire”)
- Entry: A page/subject (ship/species/planet/event/etc.)
- Block: The unit of content for an entry (text/image/chart/map/etc.)
- Gate: A spoiler threshold (work + chapter position)
- TimeSlice: A year/era/range for timeline filtering
- Variant: An alternate view of an entry (often faction-based)
- Template: Seeds an entry with a standard set of blocks (by entry type)
Rendering (Spoilers + Timeline + Variants)
Render blocks for an entry using a viewer context:
Each item includes:
- display.text (for text blocks)
- display.payload (for non-text blocks)
- is_locked / locked_mode
Templates: create entry scaffolds by type
Create a template with entry_type = 'planet', then use your app to create entries of type planet.
The package will resolve the default template by type and seed the required blocks.
Search API (Safe vs Full)
Search uses crawler snapshots. Query in safe mode for spoiler-safe results (recommended for public):
Each result includes: entry, score, snippet, mode
Crawler: Link Suggestions + Snapshots
Generate snapshots and link suggestions:
The crawler creates:
- entry snapshots in
sw_entry_snapshots(bothsafeandfullmodes) - suggestions in
sw_link_suggestions(new|accepted|dismissed)
Applying suggestions
Your app can review suggestions and apply them to blocks using:
Searsandrew\SeriesWiki\Services\Crawler\LinkSuggestionWorkflow
It supports accept/dismiss and applying a suggestion to markdown content.
URL generation
Markdown URL generation is configurable:
Validation
Validation is extensible via config:
entries.types.{type}.rules/defaults/fieldsblocks.types.{type}.rules/defaults/fields
Use:
Searsandrew\SeriesWiki\Services\Entries\EntryValidatorSearsandrew\SeriesWiki\Services\Blocks\BlockValidator
Tests
License
MIT
All versions of series-wiki with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/validation Version ^11.0|^12.0