capell-app / site-stats
Simple content totals and metric trends for Capell sites.
Requires
- php: ^8.4
- capell-app/core: ^1.0.17
- laravel/framework: ^12.41.1|^13.0
- spatie/laravel-package-tools: ^1.14.1
This package is auto-updated.
Last update: 2026-07-30 12:04:05 UTC
README
What This Plugin Adds
Site Stats is an Available, No schema impact Capell package in the Capell Foundation product group. It ships as capell-app/site-stats and extends these surfaces: shared.
Site Stats registers privacy-safe current-day page and site totals with Capell's typed metrics pipeline.
Authorized global administrators can inspect retained content-inventory trends through a consuming Core metrics surface without collecting visitor analytics.
Evidence: src/Metrics/ContentTotalsMetricsCollector.php, src/Providers/SiteStatsServiceProvider.php, tests/Unit/Metrics/ContentTotalsMetricsCollectorTest.php, docs/screenshots/site-stats-metrics-dashboard.png, src/Health/SiteStatsHealthCheck.php, tests/Feature/ScreenshotFixtureRouteTest.php.
Status details:
- Status: Available
- Tier: free
- Bundle: foundation
- Composer package:
capell-app/site-stats - Namespace:
Capell\SiteStats - Theme key: not applicable
Why It Matters
For developers: The collector uses Core metric definitions, scopes, governance, and daily rollups rather than introducing a package-specific reporting store.
For teams: Teams get a simple retained view of content growth without page-view tracking, request logging, or a second analytics dashboard.
Evidence: src/Metrics/ContentTotalsMetricsCollector.php, tests/Unit/ManifestRequirementsTest.php, tests/Feature/ScreenshotFixtureRouteTest.php.
Screens And Workflow
Screenshot contract: docs/screenshots.json.
- Site Stats content totals in the Core metrics dashboard (admin, required).
Technical Shape
- Service providers:
Capell\SiteStats\Providers\SiteStatsServiceProvider. - Manifest contributions:
health-check: Capell\SiteStats\Health\SiteStatsHealthCheck. - Health checks:
Capell\SiteStats\Health\SiteStatsHealthCheck. - Cache tags:
site-stats.
Data Model
- Required tables:
pages,sites. - Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: Docs gap: migrations and manifest contributions do not prove a cascade, pruning command, or timed retention policy.
Install Impact
- Required packages:
capell-app/core. - Admin navigation: no admin page or resource contribution is declared.
- Admin/editor extensions: none declared.
- Permissions: none declared in
capell.json. - Public routes: none declared.
- Database changes: no package migrations declared.
- Config: no package config files.
- Settings: no package settings declared.
- Queues or schedules: none declared.
- Cache tags:
site-stats. - Commands: none declared.
Common Pitfalls
- Keep required Capell packages on compatible v4 releases:
capell-app/core. - Custom write integrations must preserve invalidation for
site-statscache tags.
Troubleshooting
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration |
Reinstall the package, refresh Composer autoload, and clear host caches |
Quick Start
- Install the package:
composer require capell-app/site-stats. - No package-specific setup command or migrations are declared.
- Open the Site Stats content totals in the Core metrics dashboard and confirm the admin workflow loads.
Next Steps
- Package docs
- Overview
- Troubleshooting
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Focused tests:
vendor/bin/pest packages/site-stats/tests --configuration=phpunit.xml.
