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. [Utility &amp; Helpers](/categories/utility)
4. /
5. smytsyk-dev/freque

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

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 2w 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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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

2799d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8895711?v=4)[smytsyk](/maintainers/smytsyk)[@smytsyk](https://github.com/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

[wnx/laravel-stats

Get insights about your Laravel Project

1.7k1.8M7](/packages/wnx-laravel-stats)[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

2521.4M117](/packages/marcocesarato-php-conventional-changelog)[czproject/git-php

Library for work with Git repository in PHP.

5555.1M103](/packages/czproject-git-php)[cypresslab/gitelephant

An abstraction layer for git written in PHP

6131.1M28](/packages/cypresslab-gitelephant)[teqneers/php-stream-wrapper-for-git

Git Stream Wrapper for PHP

2862.2M8](/packages/teqneers-php-stream-wrapper-for-git)[ramsey/conventional-commits

A PHP library for creating and validating commit messages according to the Conventional Commits specification. Includes a CaptainHook action!

1931.5M143](/packages/ramsey-conventional-commits)

PHPackages © 2026

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