PHPackages                             patrickriemer/feature - 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. patrickriemer/feature

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

patrickriemer/feature
=====================

Log usage of features

00PHP

Since Dec 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/patrickriemer/feature)[ Packagist](https://packagist.org/packages/patrickriemer/feature)[ RSS](/packages/patrickriemer-feature/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Feature
=======

[](#feature)

Offers a simple way of logging if a feature of your application is used and how often.

First you have to create a new feature:

```
use PatrickRiemer\Feature\Feature;

$feature = Feature::create('email_reporting', 'Enabled email reporting');

```

After this you can log whenever a user is invoking your new feature. The user\_id is optional:

```
Feature::log($feature, auth()->id());
Feature::log($feature);

```

By default the database entry will be created with a job. If you want to create it directly, you can add the following flag to your environment file:

```
FEATURE_NO_JOB=true

```

If you want to turn off logging of the user id even if it is passed as argument, you can disable this with the following flag:

```
FEATURE_LOG_USER=false

```

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32695238?v=4)[Patrick Riemer](/maintainers/patrickriemer)[@patrickriemer](https://github.com/patrickriemer)

---

Top Contributors

[![patrickriemer](https://avatars.githubusercontent.com/u/32695238?v=4)](https://github.com/patrickriemer "patrickriemer (1 commits)")

### Embed Badge

![Health badge](/badges/patrickriemer-feature/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B11.5k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1941.5M276](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2328.5M343](/packages/open-telemetry-sdk)

PHPackages © 2026

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