PHPackages                             smytsyk-dev/freque - 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. smytsyk-dev/freque

ActiveLibrary

smytsyk-dev/freque
==================

The library to get stats how frequently files are changed based on GIT commits information.

0.0.1(7y ago)1231MITPHPPHP ^7.0

Since Oct 31Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Freque
======

[](#freque)

The library to get stats how frequenlty files are changed based on GIT commits information.

Requirements
------------

[](#requirements)

- PHP 7 or above.
- GIT

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

[](#installation)

Install the latest version with

```
$ composer require smytsyk-dev/freque
```

Basic Usage
-----------

[](#basic-usage)

```
./vendor/bin/freque path_to_GIT_directory
```

### Example of the output

[](#example-of-the-output)

```
| #    | Total | Last Modified Date             | File
--------------------------------------------------------------------------------
| 1    |     5 | Sun, 28 Oct 18 18:45:00 +0000  | composer.json
| 2    |     3 | Sun, 28 Oct 18 20:36:05 +0000  | freque
| 3    |     3 | Sun, 28 Oct 18 19:52:56 +0000  | src/Runner.php
| 4    |     2 | Sun, 28 Oct 18 18:45:00 +0000  | src/JsonFormatter.php
| 5    |     2 | Sun, 28 Oct 18 18:45:00 +0000  | src/Reporter.php
| 6    |     2 | Sun, 28 Oct 18 13:48:34 +0000  | src/File.php
| 7    |     2 | Sun, 28 Oct 18 18:45:00 +0000  | src/Formatter.php
| 8    |     2 | Sat, 27 Oct 18 21:03:15 +0000  | src/Processor.php

```

Formatter
---------

[](#formatter)

The default formatter is "Console"

There is a way to get the output in JSON

```
./vendor/bin/freque --formatter=json /Library/WebServer/Documents/file_stats/freque
```

Advanced Usage
--------------

[](#advanced-usage)

You can introduce your own formatter, file scanner or any other component. The design allows adding new requirements and modifying the behavior.

```
use Freque\FileChangesHistoryLoader;
use Freque\JsonFormatter;
use Freque\Processor;
use Freque\Reporter;
use Freque\Runner;
use Freque\Utils\GitFileHistoryLoader;
use Freque\Utils\ScandirFileScanner;
use Freque\Utils\ShellExec;

$runner = new Runner(new Processor(new ScandirFileScanner()),
    new FileChangesHistoryLoader(new GitFileHistoryLoader(new ShellExec())),
    new Reporter(new JsonFormatter())
);

$targetGitRepositoryDir = ''

echo $runner->run($targetGitRepositoryDir) . PHP_EOL;
```

License
-------

[](#license)

This library is released under the [MIT license](LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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

Unknown

Total

1

Last Release

2751d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39dba2f3282356d0e40a2f8162119155a1f403be73c139637e4ded056da1daa2?d=identicon)[smytsyk](/maintainers/smytsyk)

---

Top Contributors

[![vmytsyk](https://avatars.githubusercontent.com/u/9865768?v=4)](https://github.com/vmytsyk "vmytsyk (3 commits)")[![smytsyk](https://avatars.githubusercontent.com/u/8895711?v=4)](https://github.com/smytsyk "smytsyk (2 commits)")

---

Tags

historygitstats

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/smytsyk-dev-freque/health.svg)

```
[![Health](https://phpackages.com/badges/smytsyk-dev-freque/health.svg)](https://phpackages.com/packages/smytsyk-dev-freque)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[venturecraft/revisionable

Keep a revision history for your models without thinking, created as a package for use with Laravel

2.6k6.6M51](/packages/venturecraft-revisionable)[brainmaestro/composer-git-hooks

Easily manage git hooks in your composer config

1.1k9.1M444](/packages/brainmaestro-composer-git-hooks)[captainhook/captainhook

PHP git hook manager

1.1k6.8M370](/packages/captainhook-captainhook)[marcocesarato/php-conventional-changelog

Generate changelogs and release notes from a project's commit messages and metadata and automate versioning with semver.org and conventionalcommits.org

2511.3M109](/packages/marcocesarato-php-conventional-changelog)[czproject/git-php

Library for work with Git repository in PHP.

5544.9M81](/packages/czproject-git-php)

PHPackages © 2026

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