Download the PHP package vskstudio/takt-laravel without Composer

On this page you can find all versions of the php package vskstudio/takt-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 takt-laravel

Takt for Laravel

Laravel integration for Takt analytics. Drop a single @takt Blade directive in your layout for privacy-friendly client-side tracking, and use the Takt facade to send server-side events straight from your application code.

Requirements

Installation

The service provider and the Takt facade are registered automatically through Laravel package auto-discovery. There is nothing else to wire up.

Configuration

The package ships with sane defaults and reads everything from your environment. To customise the published config file:

This writes config/takt.php. All values are environment-driven:

Env variable Default Description
TAKT_DOMAIN '' The site/domain registered in Takt that data is attributed to.
TAKT_ENDPOINT https://takt.example.com Base URL of your Takt ingest endpoint.
TAKT_SCRIPT_ORIGIN null First-party origin to serve the tracker + derive the endpoint from ({origin}/api/event) — your Takt domain or a custom domain to dodge ad-blockers (endpoint wins over it).
TAKT_API_KEY null Ingest-scoped API key used for server-side events (see below).
TAKT_MODE inline Snippet delivery mode: inline, cdn, asset, or sdk (full ES-module init(), required for TAKT_SCRUB_URL).
TAKT_OUTBOUND false Track clicks on outbound links.
TAKT_FILES false Track file download clicks.
TAKT_FILE_EXTENSIONS '' Comma-separated extensions to count as downloads (e.g. pdf,zip,docx). Empty keeps the tracker's default list.
TAKT_TAGGED false Track elements tagged in HTML with data-takt-event.
TAKT_NOT_FOUND false Track 404 pageviews.
TAKT_EXCLUDE_LOCALHOST true Skip tracking when running on localhost.
TAKT_NONCE null CSP nonce for the inline <script> (request-scoped — see config notes).
TAKT_SAMPLE_RATE null Sample a fraction of hits, e.g. 0.5 keeps ~50%. Unset tracks everything.
TAKT_TRACK_QUERY null Keep the raw query string + hash in tracked URLs (default strips them).
TAKT_QUERY_PARAMS '' Comma-separated query params to keep when TAKT_TRACK_QUERY is off (e.g. utm_source,utm_medium).
TAKT_RESPECT_DNT null Set to false to stop honoring the browser Do-Not-Track header.
TAKT_ENABLED null Kill-switch: set to false to disable tracking entirely.
TAKT_SCRUB_URL null Raw JS function to rewrite URLs before sending, e.g. (u) => u.split('#')[0]. Requires TAKT_MODE=sdk and is dev-controlled only — it is injected verbatim into the page; never build it from user input.

Example .env:

Client-side tracking

Add the @takt directive to the <head> of your layout:

Delivery modes

TAKT_MODE controls how the tracking script is delivered:

Server-side events

Use the Takt facade to record events from controllers, jobs, or anywhere in your application:

Server-side events automatically attribute to the current request's IP address and User-Agent, so they are correlated with the visitor that triggered them. You can optionally pass an explicit URL as the last argument to either method.

API key scope: TAKT_API_KEY must be an ingest-scoped key bound to the configured TAKT_DOMAIN. Keep it server-side only — it is never exposed to the browser.

License

MIT. See LICENSE.


All versions of takt-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
vskstudio/takt-core-php Version ^0.5.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
guzzlehttp/guzzle Version ^7.8
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 vskstudio/takt-laravel contains the following files

Loading the files please wait ...