PHPackages                             danielriera/phplog - 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. danielriera/phplog

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

danielriera/phplog
==================

Register LOG messages on structure

1.0.2(5y ago)522MITPHPPHP &gt;=5.4

Since Mar 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/DanielRiera/PHPLog)[ Packagist](https://packagist.org/packages/danielriera/phplog)[ RSS](/packages/danielriera-phplog/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

PHP LOG Class
=============

[](#php-log-class)

Custom static class for register messages with simple methods.

INSTALLATION
------------

[](#installation)

**With Composer**

```
composer require danielriera/phplog

```

CONSTANTS
---------

[](#constants)

**LOG\_DEFAULT\_FILE**Default file if $type is not defined, default: 'user'

**LOG\_FOLDER**Folder on put files, default: '/'

**LOG\_DIVIDE\_ELEMENT**If defined divide files by $element, default: No defined

API
---

[](#api)

##### **LOG::add(msg, element, type)**

[](#logaddmsg-element-type)

- **msg**: String | Array | Object to register.
- **element**: String or Integer id, default: false.
- **type**: Type of log register, default: `LOG_DEFAULT_FILE` (user)

Example
-------

[](#example)

```
LOG::add("Test Line");
LOG::add("Test User Line", 524);
LOG::add("Other User Line", 524);
LOG::add("Order Test Line", 'WEB581657816', 'order');

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~1 days

Total

3

Last Release

1900d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a454fe8ec7982c4991f2d239e03e7e87cd6669198839cc5fcfd92d108c76f160?d=identicon)[danielriera](/maintainers/danielriera)

---

Top Contributors

[![DanielRiera](https://avatars.githubusercontent.com/u/11461994?v=4)](https://github.com/DanielRiera "DanielRiera (2 commits)")

---

Tags

loggerlogsphpusers

### Embed Badge

![Health badge](/badges/danielriera-phplog/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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