PHPackages                             perfocard/flog - 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. perfocard/flog

ActiveLibrary

perfocard/flog
==============

Laravel wrapper for the Flog binary

v1.0.1(1y ago)09MITPHPPHP &gt;=8.4

Since Jan 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/perfocard/flog)[ Packagist](https://packagist.org/packages/perfocard/flog)[ RSS](/packages/perfocard-flog/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Flog Generator for Laravel
==========================

[](#flog-generator-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/20ae8ce75ceb5bff8fef447dae7316594e087173c90467706dcc3edf891c88ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706572666f636172642f666c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/perfocard/flog)[![Total Downloads](https://camo.githubusercontent.com/2b5eeca8f8645d39e9a00af356969557eb00c26567e933339b91050ef2cdda47/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706572666f636172642f666c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/perfocard/flog)[![License](https://camo.githubusercontent.com/6aa484636112c94333347b981188cfbc63eb7ed93a1aaa02d74c662b59492a72/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f706572666f636172642f666c6f672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/perfocard/flog)

Flog is a Laravel package that provides an interface to generate fake logs. This package is a wrapper around the `flog` binary created by [mingrammer/flog](https://github.com/mingrammer/flog).

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

[](#installation)

Install the package using Composer:

```
composer require perfocard/flog
```

Publish the configuration file:

```
php artisan vendor:publish --provider="Perfocard\Flog\FlogServiceProvider"
```

Configuration
-------------

[](#configuration)

After publishing, the configuration file `config/flog.php` will be available. You can specify the binary path and platform-specific binary paths here:

```
return [
    'platform' => 'linux-arm64', // Default platform
    'binary_path' => 'vendor/perfocard/flog/bin/{platform}/flog',
];
```

Update the `platform` value to match your system's architecture.

Usage
-----

[](#usage)

### Generate a single log

[](#generate-a-single-log)

```
use Perfocard\Flog\Generator;

$log = Generator::generateOne();
```

### Generate multiple logs

[](#generate-multiple-logs)

```
use Perfocard\Flog\Generator;

$logs = Generator::generate(10);
```

You can also specify a custom format:

```
$log = Generator::generateOne('apache_common');
```

Testing
-------

[](#testing)

To test this package, ensure that the `tests` directory is registered in the PHPUnit configuration file of your main project.

Add the following to the `phpunit.xml` file in your Laravel project:

```

        vendor/perfocard/flog/tests

```

Run the tests:

```
php artisan test
```

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

[](#contributing)

Contributions are welcome! Feel free to submit a pull request or open an issue.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance41

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2

Last Release

497d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ee3cd0b38434e9b288941933661c44a2ae54e8fba0a2a2f979920f1f02ff0f2?d=identicon)[perfocard](/maintainers/perfocard)

---

Top Contributors

[![goszowski](https://avatars.githubusercontent.com/u/10208931?v=4)](https://github.com/goszowski "goszowski (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/perfocard-flog/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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