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(4mo ago)02↓95.2%MITPHPPHP &gt;=8.1

Since Apr 2Pushed 4mo 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 6d 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

33

—

LowBetter than 72% of packages

Maintenance75

Regular maintenance activity

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

136d 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

[aedart/athenaeum

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

265.2k](/packages/aedart-athenaeum)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[laravel/framework

The Laravel Framework.

34.9k556.2M21.4k](/packages/laravel-framework)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45844.8k1](/packages/pressbooks-pressbooks)

PHPackages © 2026

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