PHPackages                             pragma-framework/historic - 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. [Framework](/categories/framework)
4. /
5. pragma-framework/historic

ActiveLibrary[Framework](/categories/framework)

pragma-framework/historic
=========================

The Pragma Module for handling models changelogs in Pragma Framework

1.12.0(1y ago)25.9k↓42.9%4[1 issues](https://github.com/pragma-framework/historic/issues)MITPHPPHP &gt;=7.0.0

Since Nov 20Pushed 1y ago2 watchersCompare

[ Source](https://github.com/pragma-framework/historic)[ Packagist](https://packagist.org/packages/pragma-framework/historic)[ RSS](/packages/pragma-framework-historic/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (2)Versions (22)Used By (0)

Pragma Historic
===============

[](#pragma-historic)

The Pragma Module for handling models changelogs in Pragma Framework.

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

[](#installation)

In composer.json add:

```
require {"pragma-framework/historic": "dev-master"}

```

Howto use with Pragma/Model classes
-----------------------------------

[](#howto-use-with-pragmamodel-classes)

In Model, add `use Historisable;` and in Model::\_\_\_construct `$this->set_historised(true);`

In Model::delete() add `this->set_global_name($this->field)` (DEPRECATED)

In Model::\_\_construct add `$this->set_global_name_fields(['field']);`

What about created\_at and created\_by
--------------------------------------

[](#what-about-created_at-and-created_by)

These columns should be handled by within the PRAGMA\_HISTORIC\_CREATION\_HOOK constant (in the config.php)

CLI Route
---------

[](#cli-route)

### Route used to empty all or part of the history

[](#route-used-to-empty-all-or-part-of-the-history)

```
php public/index.php historic:clean [-d|--days=] [-s|--skip-confirm]

```

### Options

[](#options)

**-d --days**

Number of days of history to keep

**-s --skip-confirm**

Skip confirmation (useful with crons)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~434 days

Total

21

Last Release

379d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.3.0

1.10.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/96c7742e8371ca21c3518a55945f737d11d72431c4490bc92958018fa5cbe023?d=identicon)[cyrilrouyer](/maintainers/cyrilrouyer)

---

Top Contributors

[![cyrilrouyer](https://avatars.githubusercontent.com/u/23081586?v=4)](https://github.com/cyrilrouyer "cyrilrouyer (21 commits)")[![thomas-netlor](https://avatars.githubusercontent.com/u/4964617?v=4)](https://github.com/thomas-netlor "thomas-netlor (9 commits)")[![Ti-Tom](https://avatars.githubusercontent.com/u/664195?v=4)](https://github.com/Ti-Tom "Ti-Tom (7 commits)")[![pips-](https://avatars.githubusercontent.com/u/1785712?v=4)](https://github.com/pips- "pips- (5 commits)")[![cgiuliani](https://avatars.githubusercontent.com/u/24897654?v=4)](https://github.com/cgiuliani "cgiuliani (1 commits)")

---

Tags

frameworkpragmahistoric

### Embed Badge

![Health badge](/badges/pragma-framework-historic/health.svg)

```
[![Health](https://phpackages.com/badges/pragma-framework-historic/health.svg)](https://phpackages.com/packages/pragma-framework-historic)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k16.4k79](/packages/elgg-elgg)

PHPackages © 2026

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