Download the PHP package axyr/laravel-langfuse without Composer

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

Laravel Langfuse

CI PHPStan PHP Version Laravel License: MIT

Langfuse is an open-source observability platform for LLM applications. It gives you a dashboard to trace every LLM call, track token usage and costs, manage prompt versions, and evaluate output quality - all in one place. It's self-hostable or available as a managed cloud service.

This package connects your Laravel app to Langfuse. Send traces, generations, scores, and prompts with a clean, idiomatic API - or let the auto-instrumentation do it for you.

Observations are batched and flushed automatically. Zero-code auto-instrumentation is available for Laravel AI, Prism, and Neuron AI.

Features

Installation

Requires PHP 8.2+ and Laravel 12 or 13. No PHP extensions beyond the core hash, random_bytes and json; zlib is only needed when you turn on LANGFUSE_COMPRESSION.

Langfuse compatibility. Since 0.4.0 the package writes traces over OpenTelemetry (OTLP) and reads back from the v2/v3 APIs:

Surface Requirement
Tracing Langfuse Cloud (v3 and v4) and self-hosted 3.22.0+
Scores (write and read) Langfuse Cloud (v3 and v4) and self-hosted v3+
Observations, metrics and experiments read APIs Langfuse v4

Langfuse Cloud removes the deprecated ingestion and read endpoints on 2026-11-16. Upgrading to 0.4.0 before that date is required; see the upgrade guide.

Add your Langfuse credentials to .env:

Optionally publish the configuration file:

Examples

Working example projects for each integration:

Documentation

Full documentation in the docs/ directory:

See the Changelog for release history.

Contributing

Contributions welcome. Open an issue first to discuss what you'd like to change.

License

MIT

Author

Built by Martijn van Nieuwenhoven - Laravel developer specializing in AI integrations and observability tooling.


All versions of laravel-langfuse with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
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 axyr/laravel-langfuse contains the following files

Loading the files please wait ...