PHPackages                             vietnix/php-platform-vendor - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. vietnix/php-platform-vendor

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

vietnix/php-platform-vendor
===========================

Send logs to a custom endpoint

1.0.0(1y ago)03MITPHP

Since Mar 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/caoleviettien/php-platform-vendor)[ Packagist](https://packagist.org/packages/vietnix/php-platform-vendor)[ RSS](/packages/vietnix-php-platform-vendor/feed)WikiDiscussions stabled Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Vietnix Platform Logger
=======================

[](#vietnix-platform-logger)

Thư viện PHP để gửi log đến một endpoint tùy chỉnh.

Yêu cầu
-------

[](#yêu-cầu)

- PHP &gt;= 7.4
- Composer

Cài đặt
-------

[](#cài-đặt)

```
composer require vietnix/php-platform-vendor
```

Cách sử dụng
------------

[](#cách-sử-dụng)

```
use Vietnix\PlatformVendor\PlatformLogger;

// Khởi tạo logger
$logger = new PlatformLogger(
    'https://your-endpoint.com', // URL endpoint
    'your-api-key'              // API key
);

// Gửi log
$logger->sendLog(
    'Nội dung log',  // Message
    3,              // Level (mặc định là 3 - DEBUG)
    ['key' => 'value'] // Metadata tùy chọn
);
```

Các mức độ log
--------------

[](#các-mức-độ-log)

LevelGiá trịMô tảURGENT1Khẩn cấpERROR2LỗiDEBUG3Debug (mặc định)WARN4Cảnh báoINFO5Thông tinResponse
--------

[](#response)

Hàm `sendLog()` sẽ trả về:

- `true`: Khi log được gửi thành công (status code 200 hoặc 201)
- `false`: Khi có lỗi xảy ra

License
-------

[](#license)

MIT

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance42

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

469d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32132066?v=4)[Cao Lê Viết Tiến](/maintainers/caoleviettien)[@caoleviettien](https://github.com/caoleviettien)

---

Top Contributors

[![caoleviettien](https://avatars.githubusercontent.com/u/32132066?v=4)](https://github.com/caoleviettien "caoleviettien (3 commits)")

### Embed Badge

![Health badge](/badges/vietnix-php-platform-vendor/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[spatie/flare-client-php

Send PHP errors to Flare

177161.5M23](/packages/spatie-flare-client-php)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)

PHPackages © 2026

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