PHPackages                             defectivecode/faker-storage - 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. defectivecode/faker-storage

ActiveLaravel

defectivecode/faker-storage
===========================

1.0.0(4mo ago)1725—7.7%MITPHPPHP &gt;=8.4CI passing

Since Jan 5Pushed 4mo agoCompare

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

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

   ![Defective Code Logo](https://camo.githubusercontent.com/b908aa3ebd794a21c8deddfa90d3533345e96cbc561822799450ebd26aa0be71/68747470733a2f2f646566656374697665636f64652e636f6d2f6c6f676f732f6c6f676f2d616e696d617465642d6c696768742e706e67)

[English](https://www.defectivecode.com/packages/faker-storage/en) | [العربية](https://www.defectivecode.com/packages/faker-storage/ar) | [বাংলা](https://www.defectivecode.com/packages/faker-storage/bn) | [Bosanski](https://www.defectivecode.com/packages/faker-storage/bs) | [Deutsch](https://www.defectivecode.com/packages/faker-storage/de) | [Español](https://www.defectivecode.com/packages/faker-storage/es) | [Français](https://www.defectivecode.com/packages/faker-storage/fr) | [हिन्दी](https://www.defectivecode.com/packages/faker-storage/hi) | [Italiano](https://www.defectivecode.com/packages/faker-storage/it) | [日本語](https://www.defectivecode.com/packages/faker-storage/ja) | [한국어](https://www.defectivecode.com/packages/faker-storage/ko) | [मराठी](https://www.defectivecode.com/packages/faker-storage/mr) | [Português](https://www.defectivecode.com/packages/faker-storage/pt) | [Русский](https://www.defectivecode.com/packages/faker-storage/ru) | [Kiswahili](https://www.defectivecode.com/packages/faker-storage/sw) | [தமிழ்](https://www.defectivecode.com/packages/faker-storage/ta) | [తెలుగు](https://www.defectivecode.com/packages/faker-storage/te) | [Türkçe](https://www.defectivecode.com/packages/faker-storage/tr) | [اردو](https://www.defectivecode.com/packages/faker-storage/ur) | [Tiếng Việt](https://www.defectivecode.com/packages/faker-storage/vi) | [中文](https://www.defectivecode.com/packages/faker-storage/zh)

Introduction
============

[](#introduction)

**Faker Storage** is a high-performance PHP package designed to generate and store large volumes of fake data files efficiently. Built with concurrency in mind, it leverages Swoole or PCNTL to generate thousands of files in parallel, making it ideal for load testing, development environments, and storage system benchmarking.

The package provides a fluent API for generating various file types including images (PNG, JPG, GIF, BMP, WEBP, AVIF), text files, CSV files, binary data, and RFC822-compliant emails. Each generator produces deterministic output when seeded, ensuring reproducible test data across environments.

Key Features
------------

[](#key-features)

- **High-Performance Concurrency**: Automatic selection between Swoole (coroutines) and PCNTL (process forking) for parallel file generation
- **Multiple File Generators**: Built-in support for images, text, CSV, binary, and email files
- **Deterministic Output**: Seed-based generation ensures reproducible results
- **Flexible Storage**: Works with any League Flysystem adapter (local, S3, etc.)
- **Customizable File Naming**: Closure-based name generation with full control
- **Image Support**: Multiple formats with configurable dimensions and compression
- **Email Generation**: RFC822-compliant emails with attachments and MIME support

Example
-------

[](#example)

```
use DefectiveCode\Faker\Faker;
use League\Flysystem\Filesystem;
use DefectiveCode\Faker\Generators\Png;
use League\Flysystem\Local\LocalFilesystemAdapter;

// Generate 1000 PNG images with 10 concurrent workers
Faker::make(Png::class)
    ->width(800, 1920)
    ->height(600, 1080)
    ->toDisk(new Filesystem(new LocalFilesystemAdapter('/path/to/storage')))
    ->basePath('images')
    ->count(1000)
    ->concurrency(10)
    ->seed(42)
    ->generate();

// Generate CSV files
use DefectiveCode\Faker\Generators\Csv;

Faker::make(Csv::class)
    ->columns(5, 10)
    ->rows(100, 500)
    ->delimiter(',')
    ->toDisk(new Filesystem(new LocalFilesystemAdapter('/path/to/storage')))
    ->count(50)
    ->generate();

// Generate emails with attachments
use DefectiveCode\Faker\Generators\Email;

Faker::make(Email::class)
    ->paragraphs(3, 5)
    ->sentences(2, 4)
    ->withAttachment(Png::class, 1, 3)
    ->toDisk(new Filesystem(new LocalFilesystemAdapter('/path/to/storage')))
    ->count(100)
    ->generate();
```

Documentation
=============

[](#documentation)

You may read the [documentation on our website](https://www.defectivecode.com/packages/faker-storage).

Support Guidelines
==================

[](#support-guidelines)

Thanks for choosing our open source package! Please take a moment to check out these support guidelines. They'll help you get the most out of our project.

Community Driven Support
------------------------

[](#community-driven-support)

Our open-source project is fueled by our awesome community. If you have questions or need assistance, StackOverflow and other online resources are your best bets.

Bugs, and Feature Prioritization
--------------------------------

[](#bugs-and-feature-prioritization)

The reality of managing an open-source project means we can't address every reported bug or feature request immediately. We prioritize issues in the following order:

### 1. Bugs Affecting Our Paid Products

[](#1-bugs-affecting-our-paid-products)

Bugs that impact our paid products will always be our top priority. In some cases, we may only address bugs that affect us directly.

### 2. Community Pull Requests

[](#2-community-pull-requests)

If you've identified a bug and have a solution, please submit a pull request. After issues affecting our products, we give the next highest priority to these community-driven fixes. Once reviewed and approved, we'll merge your solution and credit your contribution.

### 3. Financial Support

[](#3-financial-support)

For issues outside the mentioned categories, you can opt to fund their resolution. Each open issue is linked to an order form where you can contribute financially. We prioritize these issues based on the funding amount provided.

### Community Contributions

[](#community-contributions)

Open source thrives when its community is active. Even if you're not fixing bugs, consider contributing through code improvements, documentation updates, tutorials, or by assisting others in community channels. We highly encourage everyone, as a community, to help support open-source work.

*To reiterate, DefectiveCode will prioritize bugs based on how they impact our paid products, community pull requests, and the financial support received for issues.*

License
=======

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance77

Regular maintenance activity

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/78e4224b766aee15b2ed1281e7ccca475fb48908887435c3504ffb2b9991c993?d=identicon)[SimplyCorey](/maintainers/SimplyCorey)

---

Top Contributors

[![SimplyCorey](https://avatars.githubusercontent.com/u/624784?v=4)](https://github.com/SimplyCorey "SimplyCorey (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/defectivecode-faker-storage/health.svg)

```
[![Health](https://phpackages.com/badges/defectivecode-faker-storage/health.svg)](https://phpackages.com/packages/defectivecode-faker-storage)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[symfony/mailer

Helps sending emails

1.6k368.1M955](/packages/symfony-mailer)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)

PHPackages © 2026

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