Download the PHP package kilden/laravel without Composer
On this page you can find all versions of the php package kilden/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kilden/laravel
More information about kilden/laravel
Files in kilden/laravel
Package laravel
Short Description Kilden for Laravel — server-side events, queued delivery and the /kilden/identity endpoint.
License MIT
Homepage https://kilden.io
Informations about the package laravel
kilden/laravel
Kilden is a customer data platform — analytics, campaigns and session replay on one event pipeline. This package wraps the PHP SDK for Laravel: a configured singleton, a facade, queued delivery, and the identity endpoint your frontend needs for identity verification.
Requires PHP 8.2+ and Laravel 11–13. For plain PHP (7.4+), use
kilden/kilden-php directly.
Install
(Both @alpha flags are needed while we ship prereleases — Composer ignores
stability flags on transitive requirements. They go away at 0.1.0.)
Set your secret write key — never the public wk_ one, which belongs in
the browser SDK:
Track from anywhere
Events flush automatically at the end of the request (and on queue workers,
when the job finishes). With KILDEN_QUEUE=true, calls dispatch a job
instead of sending inline — the timestamp is stamped at call time, so
nothing shifts.
Frontend in one line
@kildenScript renders the official web SDK loader in your layout —
configured, identity-wired, and auto-identifying the logged-in user:
If your marketing site and your app live on different subdomains
(example.com + app.example.com), one more env var makes the visitor
survive the crossing — the anonymous id moves into a cookie both hosts
can read, and first-touch attribution rides along:
Heads-up: this turns on cookies, which can affect your cookie-consent obligations — that is why it is off by default.
If the identity route below is registered, the snippet wires the SDK's
getIdentityToken to it automatically, so browser events come out
verified with zero extra code. The wiring resolves the route by name
(kilden.identity), so a custom path — KildenRoutes::identity('/api/kilden-token')
— is picked up without further configuration. Without KILDEN_PUBLIC_WRITE_KEY
(or with KILDEN_ENABLED=false) the directive renders nothing.
Identity verification
The browser SDK can prove who its events belong to — but only your backend can sign that proof. One route makes it work:
The route signs a short-lived token for auth()->user() and returns
{ distinct_id, token, traits } — the web SDK refreshes against it
automatically. To attach signed traits:
Only ever sign the authenticated user. Signing an id taken from request input lets anyone impersonate anyone — with a "verified" stamp on top.
Feature flags
Testing
With KILDEN_WRITE_KEY unset (or KILDEN_ENABLED=false) the client is a
silent no-op, so test and local environments need no configuration at all.
About this repository
Read-only subtree split of
kilden-sdk-php/packages/laravel
— issues and pull requests go there. Behavior is governed by the
server SDK spec.
License
MIT
All versions of laravel with dependencies
illuminate/support Version ^11.0|^12.0|^13.0
kilden/kilden-php Version ^0.1@alpha