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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel

Kilden PHP SDK

kilden/laravel

Packagist

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

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version ^11.0|^12.0|^13.0
kilden/kilden-php Version ^0.1@alpha
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kilden/laravel contains the following files

Loading the files please wait ...