Download the PHP package replaystack/sdk without Composer

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

ReplayStack PHP SDK

Backend event capture, exception tracing, and replay debugging for PHP — feature parity with the Python SDKs.

Packagist: replaystack/sdk

Drop-in support for Laravel, Symfony, Slim, and plain PHP. Built on PSR-7 / PSR-15 so it also slots into Mezzio, Yii 3, Tempest, Roadrunner, FrankenPHP — anything PSR-15 friendly.

PHP Version

Highlights

Installation

Requirements:

Quick start (any framework, any runtime)

Laravel

The package auto-registers a service provider and facade.

.env:

Use the facade anywhere:

See docs/LARAVEL.md.

Symfony

config/bundles.php:

config/packages/replaystack.yaml:

The bundle wires a kernel.event_subscriber that captures every non-ignored request, attaches breadcrumbs, and propagates x-trace-id automatically.

See docs/SYMFONY.md.

Slim / PSR-15

For raw PSR-15 (Mezzio, etc.), import ReplayStack\Sdk\Integrations\Psr15\ReplayStackMiddleware directly.

See docs/SLIM.md.

Configuration

Every option can be set via env var or constructor argument; the constructor wins.

Env var Config field Default
REPLAYSTACK_API_KEY apiKey required
REPLAYSTACK_ENDPOINT endpoint https://api.replaystack.co
REPLAYSTACK_INGEST_URL ingestUrl {endpoint}/api/v1/ingest/events
REPLAYSTACK_SERVICE_NAME serviceName –
REPLAYSTACK_ENVIRONMENT environment APP_ENV or development
REPLAYSTACK_APP_VERSION appVersion APP_VERSION
REPLAYSTACK_COMMIT_HASH commitHash COMMIT_HASH
REPLAYSTACK_ENABLED enabled true
REPLAYSTACK_TIMEOUT_MS timeoutSeconds 2.5s
REPLAYSTACK_RETRIES maxRetries 1
REPLAYSTACK_SAMPLE_RATE sampleRate 1.0
REPLAYSTACK_CAPTURE_SUCCESS captureSuccess true
REPLAYSTACK_MAX_PAYLOAD_SIZE_BYTES maxPayloadBytes 524288
REPLAYSTACK_MAX_BREADCRUMBS maxBreadcrumbs 50
REPLAYSTACK_OFFLINE_QUEUE_MAX offlineQueueMax 100
REPLAYSTACK_FLUSH_INTERVAL_MS flushIntervalSeconds 0 (off)

Data masking

By default the following fields are scrubbed wherever they appear in headers or request/response payloads:

Matching is case-insensitive and treats - / _ / space as equivalent. Add your own with maskFields: ['phone_number', 'national_id'].

Lifecycle

ProcessGuards::install($client) additionally:

Testing

44 tests / 200+ assertions covering utils, masking, auth detection, stacktrace parsing, client lifecycle, offline queue, and the PSR-15 middleware.

License

MIT — see LICENSE.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-json Version *
ext-curl Version *
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 replaystack/sdk contains the following files

Loading the files please wait ...