PHPackages                             legalworks/laravel-logged-values - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. legalworks/laravel-logged-values

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

legalworks/laravel-logged-values
================================

Ever needed to store simple values easily, that could change over time or even in the future? When Event Sourcing is just a bit too much?

v0.0.5(5y ago)06MITPHP

Since Oct 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/legalworks/laravel-logged-values)[ Packagist](https://packagist.org/packages/legalworks/laravel-logged-values)[ Docs](https://github.com/legalworks/laravel-logged-values)[ RSS](/packages/legalworks-laravel-logged-values/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

legalworks/laravel-logged-values
================================

[](#legalworkslaravel-logged-values)

[![Latest Version on Packagist](https://camo.githubusercontent.com/45843935cc27e32145c67a63623758b5d40c631543152bf7356680bf58058ebd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6567616c776f726b732f6c61726176656c2d6c6f676765642d76616c7565732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legalworks/laravel-logged-values)[![Total Downloads](https://camo.githubusercontent.com/72fb34b6d95c1830e8b186834513218bab91e917e48f18fcb19e35e57c14b923/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6567616c776f726b732f6c61726176656c2d6c6f676765642d76616c7565732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/legalworks/laravel-logged-values)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](http://opensource.org/licenses/MIT)

Ever needed to store simple values easily, that could change over time or even in the future? When Event Sourcing is just a bit too much? This is for you... maybe.

Installation
------------

[](#installation)

Via Composer

```
$ composer require legalworks/laravel-logged-values
```

Usage
-----

[](#usage)

### Add trait

[](#add-trait)

```
use Legalworks\LoggedValues\HasLoggedValues;

class SomeModel extends Model{
    use HasLoggedValues;
    ...
}
```

### Add any logged values

[](#add-any-logged-values)

```
$someModel->logValue('pages', 500, [
    'effective_at' => now(), //optional, defaults to now()
    'description' => null, //optional
]);

```

### Get logged values

[](#get-logged-values)

```
$someModel->loggedValues; //all logged values
$someModel->groupedValues; //all values grouped by key
$someModel->pastValues;
$someModel->futureValues;

$someModel->getLatestValue('pages', '2020-10-27 12:00:00'); //get the latest value of the given key before given (optional) datetime
```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [JayAhr](https://github.com/legalworks)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Total

5

Last Release

2024d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/850803afef83ebe2790f5e1c424f9dbc888eda324bb48946eb5430a978e57f16?d=identicon)[JayAhrDe](/maintainers/JayAhrDe)

---

Top Contributors

[![JayAhrDe](https://avatars.githubusercontent.com/u/930553?v=4)](https://github.com/JayAhrDe "JayAhrDe (11 commits)")

---

Tags

laravelLoggedValues

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/legalworks-laravel-logged-values/health.svg)

```
[![Health](https://phpackages.com/badges/legalworks-laravel-logged-values/health.svg)](https://phpackages.com/packages/legalworks-laravel-logged-values)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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