All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased]
Added
Changed
Deprecated
Removed
Fixed
Security
[2.5.4] - 2026-07-27
Added
cms.updates.composer_binaryconfig key (#232) — priority-1 override for the self-updater's composer binary path, populated by default fromenv('COMPOSER_BINARY'). SettingCOMPOSER_BINARY=/opt/homebrew/bin/composerin a Laravel.envfile now works from HTTP-request context, matching the advice thecomposerBinaryNotFounderror message gives.CMS_PHP_BINARYenv var + CLI PHP interpreter resolution for composer (follow-up to #225) — a newresolvePhpBinary()walks CLI-shaped candidates (Herd, Homebrew, system) and rejects anything whose basename smells like-fpm/-cgi.CMS_PHP_BINARYwins when set; CLI SAPI short-circuits toPHP_BINARY. The resolved CLI PHP is used to invoke composer during both install and the rollback pre-check.
Fixed
- Updater metadata GETs blocked by userland HTTP listeners (#231) — the feed check, single-release lookup, SHA-256 sidecar fetch, and custom JSON endpoint all went through Laravel's
Httpfacade, which dispatchesRequestSending/ResponseReceivedaround every request. Herd Pro'sHttpClientWatcher, Telescope, Debugbar, and custom monitoring listeners could block or corrupt the request lifecycle — when Herd's dump-server socket was wedged, the check died aftermax_execution_timeinstead of the ~200ms round-trip. A newMetadataClientstatic helper uses a rawGuzzleHttp\Clientand bypasses Laravel's HTTP factory event dispatch entirely; retry semantics (5xx retry, config-driven attempt count) are preserved for the custom JSON endpoint. The download path still usesHttp::sink()(already shielded by #224). COMPOSER_BINARYin.envdidn't take effect under PHP-FPM (#232) —ApplicationUpdateManager::envComposerBinary()read viagetenv('COMPOSER_BINARY'), but Laravel 11+'s default dotenv adapter populatesenv()/$_ENVwithout callingputenv(), sogetenv()returnedfalsefrom HTTP-request context and the priority-1 override was silently skipped.envComposerBinary()now readscms.updates.composer_binary(populated fromenv('COMPOSER_BINARY')in the shipped config) first, then falls back togetenv()for hosts that exportCOMPOSER_BINARYat the OS level. ThecomposerBinaryNotFounderror message now names both the.env/config path and the OS-level path so operators aren't sent down a broken workaround.- Composer discovery failures were undiagnosable (#233) —
discoverComposerBinary()now collectsis_file()/is_executable()per candidate path and emits a structuredLog::warningon failure so operators can distinguish a wrong-path failure from a PHP-FPM sandboxed-stat failure (macOS Herd Pro sandboxes/opt/homebrew/*; chrooted FPM pools and restrictiveopen_basedirbehave the same way). The warning includesphp_sapiand a hint pointing at the fix.UpdateException::composerBinaryNotFound()accepts either the legacy flat string list or the new per-candidate diagnostic shape and renders the stat outcome for each path in the exception message, so operators don't have to check the log. Legacy callers still work; a mixed-shape input degrades to path-only rendering instead of raising aTypeError. - PHP-FPM interpreter used to invoke composer (follow-up to #225) — under PHP-FPM,
PHP_BINARYpoints at the FPM daemon binary, which prints usage and exits 64 when handed the composer PHAR. That produced the misleading"Composer install failed. Output: ."symptom on Herd hosts — composer was discovered fine, but the interpreter used to invoke it was the wrong SAPI. Rollback then wrongly reported"Composer binary could not be located"becauseverifyComposerBinaryAvailable()reused the same broken interpreter.buildComposerCommand()and the rollback pre-check now use the resolved CLI PHP; a newcomposerVerificationFailedexception surfaces the resolved binary, PHP interpreter, exit code, and captured output when--versionfails, so future misdiagnoses don't repeat. - Silent extraction failures left partial installs on disk (#236) — inside
ApplicationUpdateManager::extractUpdate()'s per-entry loop, a failedfopen('wb')orfread()on the target file previously didcontinue/breakwithout logging or throwing. Extraction of that entry was silently abandoned, nothing propagated toperformUpdate()'s catch block, andhandleUpdateFailure()/rollback never triggered — leaving a partial install on disk that failed to boot on the next request with no obvious cause. Failures are now logged with the entry + errno and thrown via a newUpdateException::extractionEntryFailed()factory soperformUpdate()'s catch block rolls back to the pre-update snapshot.
Security
- Fail closed when update source omits SHA-256 checksum (#235) —
ApplicationUpdateManager::maybeVerifyChecksum()previously logged a warning and returned silently when the update source did not advertise a SHA-256 hash, letting the updater download and execute arbitrary remote code without integrity verification. That fail-open behavior also weakened the reachability story for #234.maybeVerifyChecksum()now throwsUpdateException::checksumRequired()when no checksum is advertised. An explicit opt-in —cms.updates.allow_unverified_updates(defaultfalse, envCMS_UPDATES_ALLOW_UNVERIFIED) — is available for hosts on trusted networks or air-gapped mirrors that intentionally accept the risk; those hosts still get the original warning log. - Zip-slip in
extractUpdate()(#234) —ApplicationUpdateManager::extractUpdate()built the write target by concatenatingbase_path()with an unvalidated entry name from the ZIP, then streamed viafopen()/fwrite(). Because this bypassedZipArchive::extractTo(), PHP's own traversal mitigations did not apply, so a crafted archive entry likerelease-root/../../../etc/cron.d/xwould write outside the install root once the common prefix was stripped. Entries whose normalized path starts with/or contains..segments are now rejected before the target directory is created, andrealpath()verifies the resolved parent still sits under the extraction root before opening the write stream. Both failures are logged and the entry is skipped.
[2.5.3] - 2026-07-23
Fixed
- Self-updater
ResponseReceivedlisteners hit "Stream is detached" (#224) — 2.5.2 sink'd the release archive straight to disk viaHttp::sink()and closed the underlying stream in a response middleware to keep listeners from copying the archive back into memory (#219). But closing theLazyOpenStreamdetaches it, so anyResponseReceivedlistener that called$response->body()— Herd Pro'sHttpClientWatcher, Telescope, Debugbar, custom monitoring — threw"Stream is detached"fromGuzzleHttp\Psr7\LazyOpenStream::eof(). The whole update pipeline succeeded, then died during trailing event fanout and got rolled back. The sharedStreamsDownloadsToDiskmiddleware now swaps the closed body for a fresh in-memory empty stream viaUtils::streamFor('')before returning, sobody()returns''safely for any observer. The three source-test observer-safety assertions have been replaced with a realResponseReceivedlistener that calls->body()— the exact path Herd/Telescope/Debugbar take — so future regressions get caught. - Composer discovery on hosts where PHP-FPM's
PATHdoesn't include composer, plus actionable rollback errors (#225) — The self-updater'srunComposerInstall()ran the bare commandcomposer install ...via/bin/sh -c, which inherits PHP-FPM'sPATH. On Laravel Herd and many Nginx/PHP-FPM production setups, thatPATHdoesn't include composer's directory, so the update failed with"sh: composer: command not found". Rollback then re-ran the same failing command and reported"Rollback failed: … Manual intervention required."— masking the real cause (a resolvable "where does composer live?" problem) as an unfixable rollback failure. A newresolveComposerCommand()now walks (1) theCOMPOSER_BINARYenv var (absolute path), (2)cms.updates.composer_install_commandwhen it differs from the shipped default (backwards-compatible operator override), (3) auto-discovery across/usr/local/bin/composer,/opt/homebrew/bin/composer,~/.composer/vendor/bin/composer,~/.config/composer/vendor/bin/composer,/usr/bin/composer, and (4) barecomposer install ...(pre-2.5.3 behavior). When env or discovery wins, the command is built as{PHP_BINARY} {binary} install ...— both shell-escaped — so PHP-FPM'sPATHnever has to resolve composer's#!/usr/bin/env phpshebang, and Herd's~/Library/Application Support/Herd/bin/php-*path with its embedded space stays intact. Before rollback invokescomposer install,verifyComposerBinaryAvailable()now runs{PHP_BINARY} {binary} --versionwith a 10s timeout; when it fails we throwUpdateException::composerBinaryNotFound($searchedPaths)— an actionable message naming the paths inspected and theCOMPOSER_BINARYoverride — instead of"Manual intervention required."When rollback itself fails,UpdateException::rollbackAfterFailure()preserves both the original update-failure message and the rollback message so operators see why the update failed alongside the rollback failure. Newdocs/self-updater.mddocuments the discovery precedence, env var, escape hatch, and rollback diagnostics; the config comment oncomposer_install_commandnow describes the full chain. UpdateInfo::hasUpdate()stale after out-of-band version bumps (#226) —UpdateChecker::checkForUpdate()cached the resolvedUpdateInfovalue object forcms.updates.cache_ttlseconds (default 12h). The cached object froze bothlatestVersion(from the feed) ANDcurrentVersion(a snapshot ofconfig('app.version')at cache-populate time).hasUpdate()then compared those two frozen strings, so if the host's installed version moved forward out-of-band (manualcomposer installon a release zip, unzip-over-site, deploy script) between cache-populate and cache-render, the Updates admin page kept saying "Update available to X" for a site already on X — for up to 12h.UpdateInfo::hasUpdate()andUpdateInfo::toArray()now route throughresolveCurrentVersion(), which readsconfig('app.version')fresh at call time when the container is bootstrapped and the value is a non-empty string; falls back to the constructor snapshot for non-Laravel callers, tests, and hosts that never setapp.version. The container check goes throughIlluminate\Container\Container::getInstance()->bound('config')so we never touch an unbootstrapped container. The same helper is now used byPerformUpdateCommand,CheckForUpdateCommand, andCheckForUpdateScheduledso console output and log lines stay consistent withhasUpdate(). Belt-and-suspenders:UpdateChecker::cacheIsStale()readsconfig('app.version')without a default, treats null/empty as "no fresh version to compare against" (keeps the pre-2.5.3 cache-serving behavior on hosts that never setapp.version), and only evicts the cache when the fresh value genuinely differs from the cached snapshot. New "Cached update info and out-of-band version bumps" section indocs/self-updater.mddocuments both mechanisms.
[2.5.2] - 2026-07-22
Fixed
- Application updater still OOM'd post-download on 128M hosts (#219) — 2.5.1's streaming-download fix was only half the fight. The release archive still OOM'd at
guzzlehttp/psr7/Utils.php:124(Utils::copyToString) because a downstreamResponseReceivedlistener (Telescope-style) called$response->body()on the sink stream and pulled the whole ZIP back into a PHP string, andApplicationUpdateManager::extractUpdate()then loaded each ZIP entry into memory viagetFromIndex(). A newStreamsDownloadsToDisktrait shared by all three update sources wrapsHttp::sink()with awithResponseMiddlewarethat closes the sink body as soon as Guzzle hands the response back — before Laravel dispatchesResponseReceived, so any listener callingbody()gets an empty string instead of copying the archive.extractUpdate()now streams each ZIP entry with$zip->getStream()+ chunkedfread/fwriteinstead ofgetFromIndex(), so a single large file inside the release archive can't OOM mid-extraction either. Regression fences: one test per update source asserts the recorded PSR-7 response body is unreadable afterdownloadUpdate()returns, andApplicationUpdateManagerTestrunsextractUpdate()against a real ZIP under a scoped base path and confirms streamed extraction produces byte-for-byte copies. NotificationController::indexTypeErroron every admin poll (#220) —NotificationController::indexpassed the raw string from?limit=…straight toNotificationManager::getUserNotifications( int $limit, … ), tripping aTypeErrorunderstrict_typeson every admin poll (roughly every 30s) and drowningstorage/logs/laravel.login dozens of exceptions per minute. Swapped$request->input()for$request->integer()so the value is coerced at the controller boundary, and dropped the now-unneededphpcs:ignore. Existing validation (sometimes|integer|min:1|max:100) still rejects non-numeric input with a 422. A newNotificationControllerTestcovers the string→int coercion path, the default limit, and the validation-rejection regression fence.
[2.5.1] - 2026-07-22
Fixed
CustomJsonUpdateSourceOOM on large release tarballs (#216) —CustomJsonUpdateSource::downloadUpdate()previously buffered the entire release archive into a string via$response->body()before writing it to disk withFile::put(), which OOM'd inside Guzzle'sUtils::copyToString()on any tarball larger than roughly half of PHP'smemory_limit. The download now streams straight to disk viaHttp::sink($tempPath)->get(), mirroring the fix applied toGitLabUpdateSourceandGitHubUpdateSourcein 2.5.0 (#214). Both a transport-level throw and a non-2xx response now clean up the partial file via a sharedcatch (Throwable)block before rethrowing.
[2.5.0] - 2026-07-21
Added
-
Theme base class for per-request behavior (#198) — Themes may now ship an optional
themes/{slug}/Theme.phpthat extendsArtisanPackUI\CMSFramework\Modules\Themes\Contracts\Themeto hook into the per-request lifecycle: enqueue front-end/editor CSS + JS, register custom image sizes, and register custom REST endpoints or block filters. Themes without aTheme.phpstay fully backward compatible. A new/themes/{slug}/assets/{path}route serves static assets from the theme'sassets/directory with slug/extension/traversal validation, an explicit MIME map (so CSS/JS aren't served astext/plain),nosniff, and CSP sandbox +Content-Dispositionfor SVG to close the stored-XSS vector on uploaded themes. The manifest-driventhemeClassoverride runs through aReflectionClassprovenance check so an uploadedtheme.jsoncannot instantiate an unrelated first-party or vendorThemesubclass. Three new filters —ap.themes.frontendStyles,ap.themes.editorStyles,ap.themes.frontendScripts— let third parties add or mutate enqueue lists without subclassing. -
Widened
GlobalStylesEmittercoverage against WPtheme.jsonv3 (#200, #201, #202) — Three closely-related emission gaps closed inGlobalStylesEmitter. The styles walker moves from a 5-key hardcoded map to a registry-based one coveringborder(radius/color/style/width, including per-corner and per-side shapes),spacing.padding/margin(scalar shorthand + per-side objects), extended typography (fontWeight/fontStyle/letterSpacing/textTransform/textDecoration), andshadow→box-shadow. The widened walker now feeds root, element, AND block rules, so per-element styles get the same coverage. A newblockStyleBlocks()emitsstyles.blocks.{ns/name}—core/quote→.wp-block-quote(namespace stripped to match Gutenberg),artisanpack/card→.wp-block-artisanpack-card. WP-canonicalvar:preset|category|slugshorthand is now translated into realvar(--wp--preset--category--slug)refs before emission (idempotent — rawvar(...)passes through unchanged).SCHEMA_VERSIONbumped v2 → v3 so cached CSS from prior deploys busts automatically. Follow-up hardening in the same wave:blockSelector()rejects block names with more than one slash (ns/foo/barused to explode into invalid.wp-block-ns-foo/barand silently drop the rule), andtranslatePresetValue()anchors its regex with(?![A-Za-z0-9_|-])sovar:preset|color|primary|garbagepasses through unchanged instead of half-translating. -
Populate blocks for theme patterns in
PatternResolver(#204) —PatternResolver::buildThemePattern()previously hardcodedblocks: [], which caused every theme-shipped pattern to render as an "Empty pattern" placeholder in the visual-editor pattern browser and open as an empty canvas until the client'shydrateBlocks()re-parsedcontent.raw. A newBlockMarkupParsersupport class ports a subset of WordPress'sparse_blocks()and wires into the theme-file branch. The parser produces the WPparse_blocks()shape ({blockName, attrs, innerBlocks, innerHTML, innerContent}) and covers flat blocks, nested containers, void (self-closing) blocks, freeform HTML between blocks, and forgiving JSON-attr decoding. Client-side Gutenbergparse(rawContent)remains authoritative for editor correctness — this parser is a best-effort optimization for lightweight surfaces like the pattern thumbnail summary. Recursion is capped at depth 64 so adversarially-nestedblock_contentcan't blow the PHP call stack; PCRE errors and JSON-decode failures are logged viaLog::warning; a leading UTF-8 BOM is stripped so BOM-prefixed theme files don't emit a phantom freeform sibling. The parser is deliberately generic — siblingTemplateResolverandTemplatePartResolvertheme-file branches ship the same gap and can drop this in as-is. -
Per-block-element overrides under
styles.blocks.{name}.elements.*(#208) — ExtendsGlobalStylesEmitterto recurse into each block'selementsmap after emitting the base block rule, composing the block selector with each supported element selector so per-block-element overrides render identically to Gutenberg's own emission. Comma-joined element selectors (h1, h2, …) are distributed across the block selector —.wp-block-quote h1, .wp-block-quote h2, …— never naively concatenated as.wp-block-quote h1, h2, …, which would leak the child selector out of block scope.SCHEMA_VERSIONbumped v3 → v4 so the cache invalidates on deploy. -
Post / Page lifecycle, dashboard-widgets, plugin.hookRegistered, and search-query hooks (Wave 5) (#196) — Thirteen new fire sites bring the CMS Framework's hook surface up to parity with the rest of the ecosystem. Each
PostandPagemodel now emitsap.cmsFramework.{post,page}.saving,.saved,.published(fires only on a transition intoContentStatus::Published— first-save-as-published, draft→published, and scheduled→published all count; subsequent saves of an already-published record do not),.trashed(soft delete only — force-delete is skipped), and.restoredvia the newFiresLifecycleHooksconcern undersrc/Modules/ContentTypes/Models/Concerns/.AdminWidgetManager::getAvailableWidgetsForUser()now runs its output throughap.cmsFramework.admin.dashboardWidgets, passing the resolved user (ornull) so subscribers can make per-user injections without re-resolving auth.PluginManager::activate()firesap.cmsFramework.plugin.hookRegisteredimmediately after the plugin's service provider registers, carrying(string $pluginSlug, array $hooks)— the hooks array is the optionalhooksfield from the plugin'splugin.json(empty array when absent) so observers still get a per-plugin signal.HasContentFilters::applySearchFilter()(used by bothBlogManager::getArchiveQuery()andPageManager::getPageQuery()) runs the assembled search query throughap.cmsFramework.search.querywith(Builder $q, string $term, array $context)where$contextcarries the calling manager class, the queried model class, and the full filter array — enough for a subscriber to swap in a full-text index or route to an external search service. -
Editor-only theme stylesheet (#199) — Themes may now ship an optional
themes/{slug}/editor.cssalongside the existingthemes/{slug}/style.css. TheGET /api/v1/global-styles/cssendpoint concatenates emitter output +style.css+editor.css(in that order), giving the site-editor canvas the full canvas stylesheet in a single fetch. The@cmsGlobalStylesBlade directive is unchanged — it renders only the emitter output — soeditor.cssnever leaks to the public front-end. Analog to WordPress'sadd_editor_style(); lets themes use bare element selectors for canvas-only overrides without theming inspector-panel mini-previews. -
ThemeStylesheetReadersupport class (#199) — Public, container-bound reader (app( ThemeStylesheetReader::class )) that safely resolvesthemes/{slug}/{filename}for the active theme. Slug validation delegates toThemeManager::validateSlug(), path resolution toThemeManager::getThemesPath(), and traversal containment to the newPathContainmentGuard. MemoizesgetActiveTheme()per instance so multiple reads inside a request pay the schema-validation cost once.frontendStylesheet()/editorStylesheet()are convenience wrappers around a genericread( string $filename );readWrapped( $filename )returns the contents behind a/* === filename === */banner for concatenation, andlastModified()exposes the freshest theme-stylesheet mtime for cache-key composition. Notfinal— downstream packages (packages/visual-editor) can extend or fake it. -
PathContainmentGuard::within( $base, $candidate )(#199) — Shared realpath +str_starts_withcontainment helper for the security-sensitive path-traversal guard that was previously inlined inThemeStylesheetReader,ThemeAssetsController, and the sibling visual-editor controller. Returns the canonicalized absolute path when the candidate lives inside$base, null otherwise. -
HTTP caching on
/api/v1/global-styles/css(#199) — Response now carries anETagderived from the concatenated body and honorsIf-None-Matchwith a 304, plusCache-Control: private, must-revalidateso intermediaries revalidate cheaply instead of serving stale bytes when a theme editsstyle.css/editor.css. -
ThemeManager::getThemesPath()andvalidateSlug()public (#199) — Both accessors are now public so downstream helpers (like the new stylesheet reader and any package building on it) can anchor to the same themes root and slug rule instead of duplicating the resolution logic.getThemesPath()also gains absolute-path handling: an absolute value incms.themes.directory(e.g./opt/themes) is now honored verbatim instead of being prepended withbase_path(), and anull/empty configured value falls back tothemesso the containment guard never collapses to the app root.
Changed
- Normalized hook namespaces to
ap.cmsFramework.*(#193, #194, #195) — Roughly 120 hook names emitted by the CMS Framework have been renamed onto a consistent namespace. Wave 4a covers infrastructure surfaces (ap.admin.menu→ap.cmsFramework.admin.menu, the threeap.*.enqueuedAssetsfamilies, theap.admin.contentEdit.*extension surfaces,ap.dynamic_content.register-types→ap.cmsFramework.dynamicContent.registerTypes, plusap.roleRegistered/ap.permissionRegisteredmoving toap.rbac.*). Wave 4b covers lifecycle events (plugin.installing/installed/activating/activated/deactivating/deactivated/deleting/deleted/updating/updated→ap.cmsFramework.plugin.<action>;theme.installing/installed/activating/activated→ap.cmsFramework.theme.<action>) and the comment surfaces (comment.editLink,comments.store.defaultStatus,comments.rate-limit.{guest,authenticated},comments.form.actionall move underap.cmsFramework.comment{s}.*). Wave 4c namespaces every policy-level ability filter ({resource}.{action}such asposts.view,pages.publish,comments.moderate,role.forceDelete) underap.cmsFramework.abilities.{resource}.{action}. - Requires
artisanpack-ui/hooks: ^1.3for the newdeprecateHook()alias primitive that backs this change.
Deprecated
- Every pre-2.5.0 hook name renamed above is registered as an alias via the new
ArtisanPackUI\CMSFramework\Support\HookAliases::register()primitive (invoked inCMSFrameworkServiceProvider::boot()). Existing subscribers on the old names keep firing, and callbacks registered on old vs. new names dispatch together — no host-app changes are required to upgrade, but the old names will emit a one-per-request deprecation log entry so downstreams can migrate at their own pace.
Removed
Fixed
Security
[2.4.0] - 2026-07-16
Added
-
Dynamic content system (#178) — Site-wide dynamic content module at
src/Modules/DynamicContent/. Site owners define a piece of content once and reference it anywhere via{{source.field|mod:arg}}merge tokens; edits propagate everywhere the token is used. Ships four migrations (dynamic_content_types,_fields,_records,_record_values); an in-memory registry that merges admin-created (DB) and code-registered types with slug-conflict warnings; 11 built-in field types (text, rich_text, url, email, phone, image, date, datetime, number, address, select) with HTML-safe rendering (text-shaped types escape at render time, rich text stays raw by design); 7 built-in modifiers (default, upper, lower, truncate, date, time, nl2br —nl2brescapes input before inserting<br>and returnsHtmlString); aDynamicContentResolverwith a 65KB/resolvecap plus throttle; theapRenderContent()helper and@dynamicContentBlade directive; aDynamicContentCastEloquent cast (documented as a public content pipeline — do NOT store secrets in dynamic content records); filter-driven authz (manage_dynamic_contentcapability with per-type policy scoping viaviewAnyForType/createForType); per-request memoization on the accessor to eliminate collection-token N+1s; a resolver signature cache invalidated on record save/delete; REST endpoints under/api/v1/dynamic-content/*with types bound by slug; a Livewire admin surface (type list, field builder, singleton editor, collection editor); and wiring intoHasRenderedBlockContent::renderContent()so Blog Post, Pages, and any content type using the trait auto-resolve tokens. -
Plugin system v2.4 — schema, filter, base provider, compat, lifecycle (#179, #180, #181, #182, #183, #190) — Five interrelated enhancements for the Keystone CMS plugin UI initiative:
plugin.jsonschema extended withmin_host_version,federated_module,nav_entries,permissions(plugin-slug-namespaced),migrations_path(traversal-guarded), androllback_migrations_on_delete.- New
ap.admin.menufilter with a React/Inertia-friendly row shape (url/label/iconId/permission/external); post-filter capability re-check gates plugin-injected entries. - New
PluginServiceProviderbase class withregisterAdminPage/registerNavEntry/registerFederatedModule/pluginPath/pluginConfighelpers, backed by a container-boundPluginRegistrysingleton (Octane-safe). - Plugin
min_host_versionenforced at activation viaIncompatiblePluginExceptionwithcomposer.json+InstalledVersionsresolution; controller surfaces a structured 409 response. - Complete plugin lifecycle: transactional activation with PSR-4 snapshot/restore rollback, opt-in migration rollback on delete, namespace-scoped permission seed/unseed, and optional framework cache clears (
cms.plugins.autoClearFrameworkCaches, defaultfalse).
-
Complete plugin extensibility (#184, #185, #186, #187, #188, #191) — Ships the remaining plugin-system issues so third-party plugins can extend the framework end-to-end:
ContentTypeManager/TaxonomyManagersingular getters (getContentType,contentTypeExists,getTaxonomy,taxonomyExists,getTaxonomiesForContentType) now hydrate filter-registered entries as unpersisted models (backwards compatible via Option B); addedgetPersistedContentType/getPersistedTaxonomyfor privileged callers that must never trust plugin-suppliedtable_name.- New
CustomFieldTypeRegistry+FieldTypeDefinitionvalue object undersrc/Modules/ContentTypes/. All 16 built-inFieldTypeenum cases are pre-registered. NewapRegisterFieldType(string $slug, array|FieldTypeDefinition $definition)helper matches the siblingapRegister*signature convention.CustomField.typecast changed fromFieldType::classtostring; newfieldTypeEnum(),fieldTypeDefinition(),storageMode()accessors.CustomFieldRequestnow validates againstRule::in(registry->slugs()). CustomFieldManager::getFieldsForContentType()merges DB + filter fields. Filter fields carrystorage = metadata. TheHasCustomFieldstrait was rewritten to route metadata-storage fields to the model'smetadataJSON column. Schema mutations (createField,updateField,deleteField,generateMigration) are now restricted to DB-persisted content types so a plugin's filter-registeredtable_namecan never steerSchema::tableat a host table.- New
ContentEditExtensionsmanager exposingpanels(),tabs(),beforeEditor(),afterEditor(),saveData()overap.admin.contentEdit.{panels,tabs,beforeEditor,afterEditor,saveData}. RespectscontentTypesrestriction andorder. - Plugin authoring guide (
docs/plugin-authoring.md) andexamples/hello-world-plugin/skeleton withplugin.json, basePluginServiceProviderusage, migration, and Blade admin view. Federated React flavor stubbed with pointer to Keystone.READMEplugin-system section rewritten; "experimental" wording removed.
Security
- Plugin system hardening (#190, #191) — surfaced by local
/code-reviewpasses:- Reject manifest
migrations_pathtraversal (schema + runtimerealpathcheck). - Namespace-prefix permission slugs so seed/unseed cannot touch core or other plugin rows.
- Re-apply
Gate::allowsafter theap.admin.menufilter runs. - Allow-list URL schemes in
registerNavEntryandresolveRouteUrl. - Constrain
PluginServiceProvidermanifest walk to direct children of the plugins root. HasCustomFieldsshort-circuits viagetCasts()+ realSchemacolumn listing so a plugin cannot shadow a host attribute (password,is_admin,metadata) by registering a filter-scoped field with a colliding key.__seton filter-registered fields throwsRuntimeExceptionwhen the host model has nometadatacolumn instead of silently dropping writes.update/deleteContentTypeandupdate/deleteTaxonomyrefuse filter-only slugs (previously silentlyINSERTed phantom rows via Eloquentupdate()onexists = false).forceFillpayloads stripid/created_at/updated_at/deleted_atso plugins cannot seed persistence-critical keys.CustomFieldTypeRegistryrejects malformed filter entries (non-scalarslugorlabel, emptyslug) — one bad plugin no longer DoSes the registry.getCustomFieldsForTypeis memoized per instance and auto-flushed onsaved/deleted.
- Reject manifest
[2.3.0] - 2026-07-09
Added
-
AI content-authoring agents (#170, #171, #172, #173, #174, #175) — Five new agents built on the
artisanpack-ui/aiv1.0 foundation:PostTitleSuggestionAgent(cms.post_title) — generate 3–5 title variants from a draft body.ExcerptGenerationAgent(cms.excerpt) — generate a natural excerpt (default ≤200 chars) from full post content.TagSuggestionAgent(cms.suggest_tags) — pick tags from an existing taxonomy, optionally propose new ones.CategorySuggestionAgent(cms.suggest_category) — pick one category (slash-delimited path) from a hierarchical tree.SlugSuggestionAgent(cms.suggest_slug) — produce an SEO-friendly kebab-case slug from a title, delegating ASCII folding toStr::slug().
Every agent honors the
artisanpack.ai.features.<key>.enabledtoggle and is auto-discovered viaCMSFrameworkServiceProvider::aiFeatures(). -
AI trigger surfaces — two consumer surfaces expose the same five agents:
- Livewire component
ap-cms-ai-tools(ArtisanPackUI\CMSFramework\Livewire\Ai\AiTools) — dispatchap-cms-ai:{action}browser events, receive results onap-cms-ai:{featureKey}:{status}. - REST controller mounted at
/api/v1/cms/ai/*(ArtisanPackUI\CMSFramework\Http\Controllers\Ai\AiController) — framework-agnostic path for React, Vue, or any HTTP client. Endpoints are guarded byauth:sanctumso bearer-token SPAs can authenticate. Adding a new CMS AI feature never requires touching the@artisanpack-ui/reactor@artisanpack-ui/vuepackages.
- Livewire component
-
AI_FEATURE_KEYSconstant onCMSFrameworkServiceProvider— canonical list of the fivecms.*feature keys, consumed by both trigger surfaces.
Changed
- Minimum PHP raised to 8.3 (#175) — the
artisanpack-ui/aifoundation this release depends on requires PHP 8.3+, and running a Composer resolution across the two constraints is not possible on PHP 8.2. Hosts still on PHP 8.2 should stay on the 2.2.x line until they can upgrade the runtime. No API changes; the codebase itself does not yet require 8.3-only syntax. - Dependencies —
artisanpack-ui/ai ^1.0added assuggest+require-dev. Without it the AI Livewire component and REST routes stay unregistered and the framework boots normally.
[2.2.3] - 2026-06-14
Changed
- Widened
laravel/tinkerconstraint to allow v3 (#167, #168) —composer.jsonrequire.laravel/tinkeris now^2.10.1|^3.0.laravel/tinkerv2 caps atilluminate/* ^12.0, so Laravel 13 consumer apps requirelaravel/tinker ^3.0; the previous pin blocked the upgrade even though the framework constraint already permitted Laravel 13. No code changes —tinkeris not referenced insrc/ortests/. Existing Laravel 12 users onlaravel/tinker ^2.10.1are unaffected.
[2.2.2] - 2026-06-09
Added
- Laravel 13 support (#161) — Widened the
illuminate/supportandlaravel/frameworkconstraints to additionally allow^13.0. Existing users on Laravel 12 are unaffected; Laravel 13 is only selectable on PHP 8.3+ because Laravel 13's ownphpconstraint enforces it, so no PHP-floor bump is required for users staying on Laravel 12.
[2.2.1] - 2026-06-07
Fixed
update:performcommand--versionflag collision (#162, #163) — Symfony Console reserves--version/-Vas a global flag on everyApplication, so declaring--versiononPerformUpdateCommandthrew "An option named version already exists" at command-registration time, breaking everyphp artisan ...invocation in host apps as soon as the command was discoverable. Renamed the custom option to--target-version(and updated the corresponding$this->option()lookup). Added a regression test that verifies the command exposes--target-versionand does not redeclare--versionon its own definition.
[2.2.0] - 2026-06-04
Added
Post::previous_postandPost::next_postaccessors (#154, #157) — published-adjacent post lookups so theartisanpack-ui/visual-editorPostResolvercan stamp navigation block payloads. Lookup is ordered bypublished_at, withidas a deterministic tie-breaker when timestamps collide.HasRenderedBlockContentconcern onPostandPage(#155, #156) — exposes arendered_contentaccessor soPostResolverinartisanpack-ui/visual-editorcan stamp the_resolvedContentHTML payload directly from the model.- "Using with the visual editor" README section (#150, #159) — documents the opt-in bridge to the
artisanpack-ui/visual-editorpackage, including theblock_contentcolumn,HasBlockContentpolyfill,_resolved*attribute flow, and the newprevious_post/next_post/rendered_contentaccessors.
Security
- Hardened CI and release GitHub Actions workflows (#140, #158) — added least-privilege
permissions:blocks to.github/workflows/ci.ymland.github/workflows/release.ymlso workflow tokens no longer inherit broad write scopes by default.
[2.1.0] - 2026-06-02
Added
- Comments submodule for the Blog module (#151):
Commentmodel withpost_id,parent_idthreading, optionaluser_id, guest author fields (author_name,author_email,author_url),content,status(pending/approved/spam/trash), andapproved_attimestamp; soft-deletablepost_commentsmigration with indexes for post, parent, status, and approved-at lookupsPostmodel gainscomments()(approved-only, newest-first) andcommentsIncludingUnapproved()relations, pluscomments_countandcomments_urlaccessors for visual-editor integration- REST endpoints under
/api/v1/comments— publicGET(index,show) returns the approved set, publicPOSTcreates apendingcomment for guests, andPUT/PATCH/DELETEare auth-gated CommentRequestform request with separatestore/updaterule sets and guest-vs-authenticated branchingCommentResourceAPI resource shaping the response payload — mirrors the shapeCommentResolverreads inartisanpack-ui/visual-editorto stamp_resolved*attributes onartisanpack/comment-*blocksCommentPolicywith hookable abilities and acomments.create.publicfilter that defaults to allowCommentFactorywithpending/approved/spam/trash/guest/forPost/replyTostates
- Public
POST /api/v1/commentsrate limiting —BlogServiceProvider::registerCommentsRateLimiter()registers athrottle:commentsnamed limiter that defaults to 10/min for guests (keyed by IP) and 60/min for authenticated users (keyed by user id). Both buckets are overridable via thecomments.rate-limit.guestandcomments.rate-limit.authenticatedhooks filters.
Security
- Public, unauthenticated
POST /api/v1/commentsis rate-limited by default (see Added) to keep guest commenters from bulk-inserting againstpost_comments.
[2.0.0] - 2026-05-26
Added
- SiteEditor module — entirely new module providing the back-end for a WordPress-style site editor experience:
- H0 — extended
theme.jsonschema covering settings, styles, templates, parts, patterns, andmenus.locations - H1 — Templates + template-parts:
TemplateandTemplatePartmodels,TemplateResolver/TemplatePartResolvermerging theme-shipped files with DB user customizations, REST endpoints returning WP/wp/v2/templatesand/wp/v2/template-partsshape, withap.visual-editor.templatesandap.visual-editor.template-partsfilter registration behindclass_existsguards - H2 — Patterns:
BlockPatternmodel +block_patternstable,PatternResolvermerging theme.phppattern files with user-source DB rows, REST endpoints under/api/v1/blocks(synced) and/api/v1/block-patterns/patterns(unsynced) returning WP-shape payloads, andap.visual-editor.patternsfilter registration behind aclass_existsguard PatternFileParserfor theme-shipped pattern files with WP-style header doc-comments (Title:,Slug:,Categories:,Description:,Block Types:)- H3 — Global styles:
GlobalStylesmodel +global_stylestable (singleton-per-theme),GlobalStylesResolverdeep-mergingtheme.jsondefaults with theme-shipped variation files (themes/{active}/styles/{slug}.json) and DB user customization,GlobalStylesEmittertranslating the resolved tree into--wp--preset--*custom properties + per-element CSS rules with content-hash cache invalidation on model save/delete, REST endpoints under/api/v1/global-styles(GET / PUT / DELETE / variations / css) returning WP/wp/v2/global-stylesshape,@cmsGlobalStylesBlade directive for front-end head injection, andap.visual-editor.global-stylessingleton filter registration behind aclass_existsguard - H4 — Menus:
Menu,MenuItem, andMenuLocationAssignmentmodels with REST endpoints for menus, menu items, and theme-declared menu locations
- H0 — extended
- Visual editor integration — opt-in bridge to the optional
artisanpack-ui/visual-editorpackage:block_contentJSON column onpostsandpagestables for visual editor block trees, alongside the existingcontentlongText columnPostandPagemodels adoptArtisanPackUI\VisualEditor\Concerns\HasBlockContentwith a polyfill stub so visual-editor remains an optional integration rather than a hard composer dependency- Auto-registration of
HasBlockContentcontent types into theap.visual-editor.resourcesfilter, plus explicit registration ofPostandPage - Registration of
visual_editor.*permissions when visual-editor is installed
- QueryRuntime service (G4c-1) for resolving
core/queryblock loops at render time - Site settings —
site.*settings registered with a WP-shape/api/v1/settings/siteendpoint and a by-key save path that applies sanitizers and types - Themes lifecycle:
installFromZip()API andPOST /v1/themesupload route for installing themes from a ZIP archive- Strict manifest schema enforcement for theme installs (
WpThemeJsonValidator+WpThemeJsonValidationResult) - Theme lifecycle hooks fired on install and activate
- Updates:
GitLabUpdateSourcenow supports release-asset download URLs in addition to tarball URLs
Changed
- RBAC migration (Wave 4) — the Users module's bundled
Role,Permission,HasRolesAndPermissions, and RBAC migrations have been removed and replaced by composition over the sharedartisanpack-ui/rbacpackage. The cms-framework classes remain at the same paths and subclass the rbac base, so existing imports keep working. See UPGRADE-RBAC.md for migration details. - Relaxed
artisanpack-ui/securityconstraint to allow^2.0in addition to^1.0.3 RolesTableSeederandPermissionsTableSeederare now opt-in; the defaultDatabaseSeederonly runsSettingsTableSeederrolesandpermissionsschemas now expose adescriptioncolumn (via the rbac base schema)- New
role:route middleware alias pairs with rbac'spermission:alias
Fixed
HasFeaturedImagecontent-type trait rewritten to use thefeatureablespivot table (replacing the legacy direct column reference)- Site editor REST routes now use
auth:sanctumso REST clients can pass Bearer tokens - Template parts now accept
navigation-overlayas a valid area; the legacygeneralarea was renamed touncategorizedto match WP core (Keystone #55) UpdateInfo->sha256is now populated from GitLab releasesUsersAPI routes (users,roles,permissions,users/bulk) are now gated behind theauthmiddleware (bug fix #129)PermissionControllernow callsauthorizeResource()so it consultsPermissionPolicylike every other controller in the framework (bug fix #127)PermissionPolicymethods now takeAuthenticatable $user(Laravel's standard signature) instead ofstring|int $id(bug fix #128)- Bulk settings updates wrapped in a DB transaction
- Schema-guarded
ap.visual-editor.*filter callbacks against missing tables PostandPage$fillableno longer includeblock_content(block trees flow through the visual-editor pipeline, not mass assignment)PatternFileParserregexes are now anchored
Removed
- Bundled
Rolemodel,Permissionmodel,HasRolesAndPermissionstrait implementation, and the three RBAC migrations (create_roles_table,create_permissions_table,create_user_role_permission_pivots) — superseded byartisanpack-ui/rbac. The class/trait names are preserved as subclasses for backward compatibility.
Migration / Upgrade
See UPGRADE-RBAC.md for the full upgrade guide. For most apps, the upgrade is composer require artisanpack-ui/rbac:^0.1 && php artisan migrate.
[1.1.0] - 2026-04-06
Added
- Bulk action API endpoints for posts, pages, and users (publish, unpublish, trash, restore, delete)
- OpenAPI specification generation for all API endpoints via Scramble
includequery parameter for on-demand relationship loading across API endpoints- TypeScript type definitions for all API responses and models
- GitHub Actions CI workflow with lint and test jobs
- GitHub Actions release workflow with changelog-based release notes and Packagist integration
- Claude Code and Claude Code Review GitHub Actions workflows
- Auto-assign milestone workflow for new issues
- GitHub issue and pull request templates
Changed
- Standardized JSON error response format across all API endpoints
- Extracted shared manifest parsing and discovery logic into
HasManifestParsingtrait - Extracted shared content query and filter logic into reusable traits
- Converted
UpdateInfo::hasUpdatefrom stored state to a computed method - Replaced magic strings with enums:
ContentStatus,SettingType,FieldType,ColumnType,UpdateType - Hoisted policy and permission resolution before loops in bulk actions
- Added php-cs-fixer and ran code style formatting across the package
- Updated PHP version requirement to 8.4 for CI
- Migrated repository from GitLab to GitHub
Fixed
- Sanitized error responses and normalized
published_atin bulk actions - Corrected LIKE wildcard escaping order and added ESCAPE clause
- Hardened URL parsing and cache serialization in update sources
- Fixed incorrect
@since 2.0.0tags to@since 1.0.0in update test files
[1.0.1] - 2026-01-09
Added
- Support for the core ArtisanPack UI package in the service provider
Changed
- Updated config settings names across controllers, models, policies, and tests for consistency
[1.0.0] - 2026-01-02
Added
- Configuration publishing for module-specific configs
- Plugins config:
php artisan vendor:publish --tag=cms-plugins-config - Themes config:
php artisan vendor:publish --tag=cms-themes-config - Updates config:
php artisan vendor:publish --tag=cms-updates-config
- Plugins config:
Changed
- Moved developer documentation to
docs/developer/directorySKIPPED_TESTS.md→docs/developer/Skipped-Tests.mdCOVERAGE.md→docs/developer/Test-Coverage.md
- Updated documentation to reflect PHP 8.2 and Laravel 12 requirements
Fixed
- Replaced deprecated
mime_content_type()withfinfo_file()in PluginManager - Fixed code style inconsistency in PluginManager exception handling
- Documented all skipped tests with explanations
Removed
V1_RELEASE_CHECKLIST.md- internal development tracking file
[1.0.0-beta1] - 2024-12-21
Added
- Core Updates Module with automatic update checking and management
- GitHub, GitLab, and Custom JSON update source support
- Version-specific update downloads with prerelease filtering
- Automatic backup creation before updates with rollback capability
- ZIP extraction with nested directory handling
- Path validation and security checks in backup operations
- Comprehensive error logging during update operations
- Artisan commands:
check-for-update,perform-update,rollback-update
- Plugin System foundation (experimental)
- Plugin model with activation/deactivation tracking
- Plugin manager for lifecycle management
- Plugin update manager integration
- Plugin validation and installation exceptions
- Theme System foundation (experimental)
- Theme manager with theme discovery
- Theme activation mechanism
- JSON manifest validation
- Comprehensive input sanitization throughout codebase
- Applied
sanitizeText()andsanitizeInt()to all user inputs - Protected database queries from SQL injection
- Validated and sanitized all controller inputs
- Applied
- Type declarations for improved IDE support
- Added
Buildertype hints to all Eloquent scope methods - Added return type declarations across models
- Improved parameter type hints in managers and services
- Added
- Database seeders for default data
- RolesTableSeeder (Admin, Editor, User roles)
- PermissionsTableSeeder (content, user, settings, system permissions)
- SettingsTableSeeder (site configuration defaults)
- Exception hierarchy with base
CMSFrameworkException- ValidationException for validation errors
- NotFoundException for missing resources
- UnauthorizedException for authorization failures
- All module exceptions now extend CMSFrameworkException
- Comprehensive documentation
- API documentation structure (
docs/api/README.md) - Route registry (
docs/routes.md) - Relationship documentation (
docs/relationships.md) - Helper functions reference (
docs/helpers.md) - Exception handling guide (
docs/exceptions.md) - Skipped tests documentation (now at
docs/developer/Skipped-Tests.md)
- API documentation structure (
- Improved
.gitattributesfor cleaner package distribution
Changed
- License changed from GPL-3.0-or-later to MIT for better framework compatibility
- Standardized all
@sinceannotations to 1.0.0 (removed premature 2.0.0 references) - Configuration system improvements
- Fixed publish tag from
artisanpack-package-configtocms-framework-config - Corrected config validation to use
artisanpack.cms-framework.user_model - Updated error messages to reflect actual file paths
- Fixed publish tag from
- Code style improvements (74% PHPCS error reduction)
- Fixed spacing issues in
declare(strict_types = 1)statements - Fixed reference operator spacing in closures
- Improved array alignment and formatting
- Fixed Yoda conditions for comparison safety
- Fixed spacing issues in
Fixed
- Configuration validation mismatch between publish tag, file path, and config key
- Test configuration (fixed config key from
cms-frameworktoartisanpack.cms-framework) - Progress bar in update command (removed misleading fake progress)
glob()error handling for backup operations- Path traversal security issues in backup ZIP creation
- JSON parsing errors in UpdateCheckerFactory
- Doctrine/DBAL deprecation warnings in migrations
- 706 code style violations (reduced from 941 to 235 errors)
- Input sanitization security vulnerabilities across multiple modules
- Unskipped 2 notification tests (role-based notification functionality now fully tested)
Security
- Added comprehensive input sanitization using ArtisanPackUI Security package
- Sanitized all user inputs before database operations
- Protected against XSS attacks with proper output escaping
- Validated file paths to prevent directory traversal
- Enhanced authorization with proper policy enforcement
- Improved error handling to prevent information disclosure
Breaking Changes
- Configuration file publish tag changed to
cms-framework-config - Configuration structure now uses
artisanpack.cms-frameworkinstead ofcms-framework - All
@since 2.0.0annotations changed to@since 1.0.0
Known Limitations
- Plugin system is experimental - full lifecycle hooks not yet implemented
- Theme system is experimental - asset compilation and child themes pending
- 4 plugin-related tests remain skipped (documented in
docs/developer/Skipped-Tests.md) - Test coverage report requires Xdebug/PCOV (recommended for CI/CD)
- 235 PHPCS code style warnings remain (mostly spacing and false positives)
[0.2.4] - 2025-09-02
Added
- Enhanced user migration with password reset tokens and sessions table support
- Password reset tokens table with email primary key, token storage, and timestamp tracking
- Sessions table with comprehensive session management including user ID foreign key, IP address tracking, user agent storage, and activity indexing
- Table existence checks to prevent conflicts during migration execution
[0.2.3] - 2025-09-02
Removed
- Complete removal of all media library references from CMS framework core
- Removed media-related API routes and controller imports from api.php
- Removed MediaLibraryServiceProvider registration from CMSFrameworkServiceProvider
- Removed media library integration documentation
- Removed media-related admin page references from development guide
- Cleaned up media library package discovery ignoring in test configuration
Changed
- Updated comprehensive CMS development guide to remove media library integration examples
- Restructured package ecosystem documentation to reflect media library as separate package
[0.2.2] - 2025-09-02
Added
- Complete media library decoupling and cleanup functionality
[0.2.1] - 2025-09-02
Added
- Comprehensive media library integration documentation
- Integration guide for external
artisanpack-ui/media-librarypackage - Migration instructions for transitioning from integrated media system
Changed
- Decoupled media library functionality from CMS framework core
- Updated service provider to remove media manager bindings
- Refactored CMS configuration schema to support external media library integration
Removed
- Built-in media management system (models, controllers, policies, tests)
- Internal media database migrations and factories
- MediaManager, MediaServiceProvider, and related media classes
- Media-related HTTP controllers, requests, and resources
- All media-related unit and feature tests
- Legacy media documentation
Breaking Changes
- Media functionality now requires separate
artisanpack-ui/media-librarypackage installation### Added - Comprehensive CMS development guide and API documentation
- Analytics system with page views, user sessions, and performance tracking
- Search functionality with full-text search and analytics
- Internationalization support with multi-language capabilities
- Health monitoring and system diagnostics
- Application Performance Monitoring (APM) with metrics collection
- Docker deployment setup with multi-service containers
- Performance testing suite with benchmarking tools
- Security testing suite including penetration testing
- Console commands for content, user, and system management
- Configuration validation and documentation generation
- Caching implementation with Redis support
- Structured logging and audit trail capabilities
- Rate limiting middleware for API protection
- Input sanitization utilities
Changed
- Updated content management system with enhanced controllers
- Improved user management with additional authentication features
- Enhanced media management with better error handling
- Refined plugin and theme management systems
- Updated all policy classes with improved authorization logic
- Modernized database models with better relationships
- Enhanced API routes with comprehensive endpoints
Fixed
- Critical security vulnerabilities with input validation
- Error handling and exception management
- Cache implementation and performance issues
- Authorization policy implementations
- Database query optimization
- API response formatting and error codes
- User authentication and session management
Removed
- Temporary documentation files and test scripts
- Legacy configuration files
- Unused development artifacts
Security
- Implemented comprehensive input sanitization
- Added CSRF protection across all forms
- Enhanced rate limiting for API endpoints
- Improved authorization checks in all policies
- Added security testing suite for vulnerability detection
- Implemented audit logging for security events
- MediaManagerInterface moved to external package namespace
- Media-related routes and API endpoints moved to external package
[0.2.0] - 2025-09-01
[0.1.0] - 2025-07-13
Added
- Initial test release
- Core CMS framework functionality
- Content management system
- User management with authentication
- Plugin and theme support
- Admin interface and dashboard widgets
- Settings management
- Media management integration
- Two-factor authentication
- Progressive Web App (PWA) support
- Audit logging capabilities

