PHPackages                             vedatrace/vedatrace-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. vedatrace/vedatrace-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vedatrace/vedatrace-php
=======================

VedaTrace SDK for PHP

v1.0.0(3mo ago)02↓90.9%MITPHPPHP &gt;=8.1

Since Apr 2Pushed 3mo agoCompare

[ Source](https://github.com/Temples-Dev/vedatrace-php-sdk)[ Packagist](https://packagist.org/packages/vedatrace/vedatrace-php)[ RSS](/packages/vedatrace-vedatrace-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

VedaTrace PHP SDK
=================

[](#vedatrace-php-sdk)

[![Latest Version](https://camo.githubusercontent.com/a19a6f7fc69ed7c443d26d3159b8ddb9e22d04a3b0cb5c7d05f1034b32967ba2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f54656d706c65732d4465762f7665646174726163652d7068702d73646b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Temples-Dev/vedatrace-php-sdk/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

**VedaTrace** is a high-performance, PSR-3 compliant logging SDK for PHP. Built with reliability and scalability in mind, it provides seamless logging to the VedaTrace ingestion API with native support for Laravel, automatic data redaction, and intelligent batching.

---

🚀 Features
----------

[](#-features)

- **PSR-3 compliant**: Fully implements `Psr\Log\LoggerInterface`.
- **Laravel Ready**: First-class support via Service Providers, Facades, and Monolog handlers.
- **Intelligent Batching**: Buffers logs and flushes them in batches to optimize network overhead.
- **Data Redaction**: Protect sensitive information (passwords, tokens) with configurable JSON path-based masking.
- **Multiple Transports**: Choose between high-speed `HttpTransport` or local `ConsoleTransport` for development.
- **Child Loggers**: Create nested log contexts for request tracing and scoped metrics.

---

📦 Installation
--------------

[](#-installation)

Install VedaTrace via Composer:

```
composer require vedatrace/vedatrace-php
```

---

⚡ Quick Start
-------------

[](#-quick-start)

### Basic PHP Usage

[](#basic-php-usage)

The simplest way to start logging is using the `vedatrace()` global helper:

```
use function VedaTrace\vedatrace;

$logger = vedatrace([
    'apiKey' => 'your-api-key',
    'service' => 'billing-api'
]);

$logger->info('Processing payment', [
    'order_id' => 12345,
    'amount' => 99.99,
    'card_number' => '4111********1111' // Redaction will handle sensitive info
]);
```

### Laravel Integration

[](#laravel-integration)

VedaTrace integrates seamlessly with Laravel's logging stack.

**1. Service Provider &amp; Facade**The service provider is automatically discovered. You can use the `VedaTrace` facade immediately:

```
use VedaTrace;

VedaTrace::error('Something went wrong in the application!');
```

**2. Monolog Channel**Add VedaTrace to your `config/logging.php` to use it as a standard channel:

```
'channels' => [
    'vedatrace' => [
        'driver' => 'monolog',
        'handler' => VedaTrace\Laravel\VedaTraceHandler::class,
        'level' => 'debug',
    ],
],
```

---

🛠️ Configuration
----------------

[](#️-configuration)

OptionEnv VariableDefaultDescription`apiKey``VEDATRACE_API_KEY``''`Your VedaTrace API Key`service``VEDATRACE_SERVICE``'default-php-service'`Logical service name`batchSize``VEDATRACE_BATCH_SIZE``100`Logs per batch`flushInterval``VEDATRACE_FLUSH_INTERVAL``5000`Flush interval (ms)`redaction`N/A`paths, mask`Fields to mask---

📖 Documentation
---------------

[](#-documentation)

For detailed guides and API reference, visit the **[docs/](docs/README.md)** directory:

- [Installation Guide](docs/installation.md)
- [Basic Usage](docs/basic-usage.md)
- [Framework Integrations](docs/framework-integrations.md)
- [Configuration Reference](docs/configuration.md)
- [API Reference](docs/api-reference.md)

---

🛡️ License
----------

[](#️-license)

The VedaTrace PHP SDK is open-sourced software licensed under the [MIT license](LICENSE.md).

---

© 2026 VedaTrace Team. All rights reserved.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

91d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/90bac4460df3b498808a3605d1c302f1d2e12ed837898a2faeff95c02c3b6d05?d=identicon)[temples-dev](/maintainers/temples-dev)

---

Top Contributors

[![Temples-Dev](https://avatars.githubusercontent.com/u/112876027?v=4)](https://github.com/Temples-Dev "Temples-Dev (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vedatrace-vedatrace-php/health.svg)

```
[![Health](https://phpackages.com/badges/vedatrace-vedatrace-php/health.svg)](https://phpackages.com/packages/vedatrace-vedatrace-php)
```

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M129](/packages/roots-acorn)[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
