Search by

prelumen / analytics-core

cseydel

Platform-neutral PHP core for Prelumen Analytics integrations.

Package info

github.com/cseydel/prelumen-analytics-core

pkg:composer/prelumen/analytics-core

Statistics

Installs: 5

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-09-18 12:51 UTC

This package is auto-updated.

Last update: 2026-09-18 12:56:55 UTC


README

Platform-neutral PHP core for WordPress and TYPO3 integrations with Prelumen Analytics.

Scope

  • Renders the current Proof tracker snippet for /track/{website_uuid}/script.js.
  • Sends supported tracker payloads to /track/{website_uuid}/api, /js, and /identify.
  • Validates site configuration, consent state, event payloads, and PII-sensitive properties.
  • Provides metadata and commerce DTOs without calling undocumented upstream endpoints.
  • Registers websites through the public API and supports installation-scoped hosted account onboarding, recovery, live entitlements and billing tickets.
  • Provides an opt-in runtime consent loader for compatible Prelumen tracker deployments.

Non-goals

  • Automatic platform metadata or commerce uploads. DTOs alone do not enable delivery.
  • WordPress, TYPO3, GTM, or JavaScript SDK wrappers.

Installation

The intended stable package is prelumen/analytics-core:^1.0, requiring PHP 8.2+. Public availability is established by its Packagist listing and release tag, not by this development README. CMS adapters supply HTTP transport, permissions, consent, encrypted persistence and locking. Credentials must never be exposed in HTML or exported configuration. Runtime consent requires the matching backend tracker.

Development

composer install
vendor/bin/phpunit --coverage-text
vendor/bin/phpstan analyse -c phpstan.neon
vendor/bin/phpcs --standard=phpcs.xml.dist