PHPackages                             prinx/notify - 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. prinx/notify

ActiveLibrary

prinx/notify
============

Simple log package

v0.1.0(5y ago)11.1k↓100%8MITPHPPHP &gt;=5.6.0

Since Oct 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/prinx/notify)[ Packagist](https://packagist.org/packages/prinx/notify)[ Docs](https://github.com/prinx/notify)[ RSS](/packages/prinx-notify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (8)

PHP Notify
==========

[](#php-notify)

[![](https://camo.githubusercontent.com/1f3acae6de5d1288518c4a150429d579dc223ea48eed7cf9f1dc2f1cd0d8d864/68747470733a2f2f7472617669732d63692e636f6d2f7072696e782f6e6f746966792e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/prinx/notify) [![](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://travis-ci.com/prinx/notify)

Simple log package. Installation
------------

[](#installation)

```
composer require prinx/notify
```

Usage
-----

[](#usage)

```
$logger = new Log($file);
$logger->info('User 1 has logged in.');
```

Log Levels
----------

[](#log-levels)

- debug
- info
- notice
- warning
- error
- critical
- alert
- emergency

Each log level corresponds to a method to log a message at that level.

```
$logger->debug('Debug level event has happened.');

$logger->info('Info level event has happened.');

$logger->notice('Notice level event has happened.');

$logger->warning('Warning level event has happened.');

$logger->error('Error level event has happened.');

$logger->critical('Critical level event has happened.');

$logger->alert('Alert level event has happened.');

$logger->emergency('Emergency level event has happened.');
```

Set another log file
--------------------

[](#set-another-log-file)

```
$logger->setFile('path/to/log/file');
```

Remove log file
---------------

[](#remove-log-file)

```
$logger->remove();
```

Fluent interface
----------------

[](#fluent-interface)

The package implements the Fluent interface, allowing you to chain the methods of the logger.

```
// Eg:
$logger->info('User logged in')
    ->setFile('error.log')
    ->error('An error happened.');
```

Running tests
-------------

[](#running-tests)

```
vendor/bin/phpunit
```

Contribute
----------

[](#contribute)

The package supports only files. It will be nice to add other log dirvers.

Apart from that, feel free to create a pull request with a new functionality to the package.

Licence
-------

[](#licence)

[MIT](LICENSE)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity43

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 ~53 days

Total

5

Last Release

1835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/896d24b4882562faf6f1c8c25ea90e515037f5811f251a11fd80b68db61fc458?d=identicon)[Prinx](/maintainers/Prinx)

---

Top Contributors

[![prinx](https://avatars.githubusercontent.com/u/7337610?v=4)](https://github.com/prinx "prinx (16 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prinx-notify/health.svg)

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

PHPackages © 2026

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