-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Tycho Engberink edited this page Feb 19, 2026
·
3 revisions
A PHP client for the Langfuse API. Requires PHP 8.3+.
composer require dij-digital/langfuse-phpuse DIJ\Langfuse\PHP\Langfuse;
use DIJ\Langfuse\PHP\Transporters\HttpTransporter;
use GuzzleHttp\Client;
$langfuse = new Langfuse(
transporter: new HttpTransporter(new Client([
'base_uri' => 'https://cloud.langfuse.com',
'auth' => ['PUBLIC_KEY', 'SECRET_KEY'],
])),
environment: 'production',
label: 'latest',
);