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 1mo ago

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

25

—

LowBetter than 37% of packages

Maintenance48

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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

414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9406cd43e8d94b91e97114b91e3a9f4a1d1464f4fafc6772030b4ee6105af83d?d=identicon)[caoleviettien](/maintainers/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

[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[marvinlabs/laravel-discord-logger

Logging to a discord channel in Laravel

2081.1M2](/packages/marvinlabs-laravel-discord-logger)[larabug/larabug

Laravel 6.x/7.x/8.x/9.x/10.x/11.x/12.x/13.x bug notifier

299549.3k1](/packages/larabug-larabug)[honeybadger-io/honeybadger-php

Honeybadger PHP library

381.5M4](/packages/honeybadger-io-honeybadger-php)

PHPackages © 2026

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