Download the PHP package logbrew/sdk without Composer

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

LogBrew SDKs

LogBrew logo

LogBrew SDKs help applications send logs, errors, traces, releases, environments, actions, and explicit metrics to LogBrew with small, dependency-light clients.

This repository contains the public SDK packages, framework integrations, event contract, examples, and shared guidance used to keep the developer experience consistent across ecosystems.

What You Can Capture

User-facing severity categories are info, warning, error, and critical. SDKs keep accepting common runtime aliases where they are idiomatic, such as trace, debug, warn, and fatal, but queued payloads normalize those aliases to the canonical categories before they are sent. See the LogBrew severity contract for the full mapping.

Packages

Install only the package your application needs. The package names below are registry-specific entry points, not a bundle to install together:

Node queue integrations are published as separate npm packages. For BullMQ, KafkaJS, RabbitMQ/amqplib, and Amazon SQS, install the matching @logbrew/* integration alongside @logbrew/sdk, @logbrew/node, and the broker or client library your app already uses.

Node framework adapters also require the Node delivery package. Use the exact stack for the framework your app already owns:

Ecosystem Package Use it for
JavaScript @logbrew/sdk Core event client, transports, trace helpers, console/Pino/Winston logger adapters
Browser @logbrew/browser Browser page views, handled errors, lifecycle flushing, fetch delivery, target-scoped trace propagation
Node.js @logbrew/node Built-in node:http request capture, server delivery, and reversible existing-Pino instrumentation
BullMQ @logbrew/bullmq Explicit BullMQ producer/worker trace correlation
KafkaJS @logbrew/kafkajs Explicit KafkaJS producer/consumer trace correlation
RabbitMQ / amqplib @logbrew/amqplib Explicit RabbitMQ publish/consume trace correlation
Amazon SQS @logbrew/aws-sqs Explicit SQS send/receive/process trace correlation
Express @logbrew/express Express request/error middleware
Fastify @logbrew/fastify Fastify request/error hooks and opt-in existing application-log capture
NestJS @logbrew/nestjs NestJS interceptor capture
Angular @logbrew/angular Angular providers, injection helpers, optional error capture
Vue @logbrew/vue Vue plugin/composable capture
Svelte @logbrew/svelte Svelte context and error helpers
React @logbrew/react Provider, hook, error boundary, handled error helpers
React Native @logbrew/react-native Hosted fetch delivery, app-private offline/restart queueing, mobile context, handled errors, and app-owned Promise rejection reports
Next.js @logbrew/next App Router request-error instrumentation, Route Handler capture, and release artifacts
Python logbrew-sdk Core client, delivery, logging, shared telemetry context, and typed exception/stack/breadcrumb diagnostics
Python / Celery logbrew-sdk[celery] App-scoped producer/worker spans and typed privacy-bounded unexpected-failure issues
Python / RQ logbrew-sdk[rq] Instance-scoped producer/worker correlation, linked application logs, and final-failure issues
Python / Dramatiq logbrew-sdk[dramatiq] Broker-scoped producer/worker correlation, retry chains, linked logs, and terminal-failure issues
Python / ARQ logbrew-sdk[arq] Async producer/worker correlation, linked application logs, retries, and terminal-failure issues
FastAPI logbrew-fastapi Request spans plus typed unhandled-exception diagnostics
Flask logbrew-flask Request spans plus typed unhandled-exception diagnostics
Django logbrew-django Request spans plus typed unhandled-exception diagnostics
Go github.com/LogBrewCo/sdk/go/logbrew Core client, shared runtime/resource/session/subject context, delivery, tracing, and typed exception/stack/breadcrumb diagnostics
Go / Asynq github.com/LogBrewCo/sdk/go/logbrew/asynq Producer-to-worker trace propagation, enqueue/process spans, and correlated job issues
Go / Gin github.com/LogBrewCo/sdk/go/logbrew/gin Gin request spans, typed panic diagnostics, and optional request metrics
Java co.logbrew:logbrew-sdk Core client, shared runtime/resource/session/subject context, typed issue diagnostics, servlet/Spring correlation, HTTP delivery, JUL, and Logback support
.NET LogBrew Core .NET client, typed exception/stack/breadcrumb diagnostics, HTTP delivery, and ILogger provider
ASP.NET Core LogBrew.AspNetCore Optional request telemetry and typed unhandled-exception capture middleware
Entity Framework Core LogBrew.EntityFrameworkCore Optional EF Core command span interceptor
StackExchange.Redis LogBrew.StackExchangeRedis Optional Redis command spans without key/value capture
PHP logbrew/sdk Core PHP client, typed exception/stack/breadcrumb diagnostics, HTTP delivery, PSR-3/Monolog, Symfony request and Messenger correlation, and Laravel logging with queue-job tracing
Ruby / Rails logbrew-sdk Shared context, typed exception evidence, automatic request/error/ActiveJob/outbound HTTP correlation and delivery, stdlib Logger, and manual Rack helpers
Rust logbrew Shared runtime/resource/trace/session/subject context, typed diagnostics, HTTP/Tower correlation, tracing Logs/Spans and opt-in Issues, OpenTelemetry export, and delivery
Apple apps logbrew-objc advanced source/header variant SwiftPM LogBrew product with automatic and task-local typed context, handled-error/frame/breadcrumb diagnostics, app-owned background-operation and URLSession tracing, span milestones/links, Apple-style logging, delivery, and opt-in bounded native crash replay; Objective-C vendoring with schema-v1 shared context, structured NSError evidence, breadcrumbs, and span evidence for mixed or Objective-C-only apps
Kotlin co.logbrew:logbrew-kotlin Kotlin/JVM client with shared runtime/resource/session/subject context, structured issue diagnostics, Android helpers, tracing, and HTTP delivery
Kotlin OkHttp co.logbrew:logbrew-kotlin-okhttp Optional OkHttp request tracing, phase timings, and W3C trace propagation
Unity co.logbrew.unity Unity package with runtime helpers and HTTP delivery
C logbrew-c C source/header client
C++ logbrew-cpp C++17 RAII source/header client with typed context, rich issue/span evidence, and optional HTTP delivery

Quick Start

JavaScript:

The JavaScript core and framework clients merge this bounded context into every event. Session and subject identifiers are explicit, app-owned, and opaque; LogBrew does not automatically collect profile fields or personal data. See the @logbrew/sdk shared telemetry context guide for the complete shape and privacy rules.

RecordingTransport is local-only: its synthetic HTTP 202 makes no network request and does not indicate hosted delivery or event visibility. Use the released runtime package's HTTP transport and then read the event through the authenticated CLI or API for end-to-end confirmation.

Python:

Framework applications should use the released adapter so request lifecycle, trace context, and exception capture are installed once: logbrew-flask for Flask, logbrew-fastapi for FastAPI, or logbrew-django for Django. Each adapter installs a compatible core dependency; do not reconstruct framework middleware from the core example.

The Python core and framework clients merge this bounded context into every event. The core client also adds conservative Python runtime, operating-system, and architecture context by default, with an explicit opt-out. Session and subject identifiers remain explicit, app-owned, and opaque. See the logbrew-sdk shared telemetry context guide for the complete shape and privacy rules.

Python DB-API spans are explicit and app-owned. Trace the connect callable your app already controls, then keep using normal cursor methods:

The wrapper records operation labels such as SELECT, FETCHALL, and COMMIT, duration, row counts when the driver exposes them, trace/span correlation, and type-only failures. It does not capture SQL values, bind parameters, result rows, connection strings, baggage, tracestate, stacks, or exception messages.

PHP:

Each package README has ecosystem-specific install commands, logger integration examples, framework setup, copyable examples, and transport details. If your app does not use a framework integration, skip that package.

Automatic issue helpers preserve native cause, context, aggregate, and suppressed relationships when their runtime exposes them. The root remains compatible with the existing exception and stackFrames fields; every missing, redacted, or truncated message/stack state is explicit and no SDK invents historical evidence. See the exception-chain evidence contract.

Metrics

Metrics are explicit: core SDKs do not automatically collect runtime, framework, database, or host metrics. Opt-in framework request helpers may emit a bounded request-duration metric. Their purpose is to aggregate behavior over time—rates, latency distributions, saturation, and release-to-release change—while logs/actions describe discrete facts and traces explain individual executions.

Use metric helpers when your application already has a bounded measurement:

Product Analytics Capture

Product analytics reuses explicit action events and existing page-view telemetry. Product-action helpers across the supported SDK families attach a reserved versioned interaction classification; browser page-view helpers attach page_view, and React Native plus Kotlin/Android screen helpers attach screen_view. These annotations do not install automatic click capture or collect user-entered values. Use explicit opaque subject and session IDs in the shared telemetry context when user- or session-level analysis is required.

See the product analytics capture contract for the exact fields, privacy rules, and compatibility behavior.

Trace Context

SDK trace helpers follow W3C traceparent conventions where supported. They validate IDs, reject all-zero trace/span IDs, preserve sampled flags, and avoid global HTTP client patching by default.

Framework integrations that capture inbound requests omit query strings from automatic request/error metadata by default. Frontend and mobile integrations use clientKey wording for public keys and only send tracing headers to configured targets.

Agent-Readable Sessions

LogBrew is designed for structured analysis across many app sessions, not only one-at-a-time inspection. Capture important product steps as action events, connect frontend and backend work with traceparent, keep session/subject identity in the versioned typed context, and use low-cardinality dimensions such as routeTemplate, funnel, step, feature, and region.

For browser and mobile apps, prefer explicit action helpers for clicks, form submits, route changes, funnel steps, and retry decisions that your app already understands. Avoid raw selectors, full URLs, user-entered text, screenshots, and visual replay data unless your team has a clear privacy policy and opt-in path.

If you use an AI coding assistant, ask it to wire LogBrew into your app's logger, request lifecycle, and important product actions so agents can analyze timelines made of logs, issues, spans, actions, and metrics. The assistant should keep keys in app configuration and avoid query strings, stack text, and high-cardinality metadata unless your team opts in.

Privacy Defaults

LogBrew SDKs favor conservative defaults:

Local Payload Preview

Every core SDK supports local JSON preview or recording transports so you can inspect the queued batch before sending anything to LogBrew. This is useful while deciding which logs, spans, issues, releases, actions, environments, or explicit metrics your application should send.

The canonical schema is fixtures/.

Maintainer References


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
psr/log Version ^3.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 logbrew/sdk contains the following files

Loading the files please wait ...