PHPackages                             algenza/fake-json-generator - 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. [API Development](/categories/api)
4. /
5. algenza/fake-json-generator

ActiveLibrary[API Development](/categories/api)

algenza/fake-json-generator
===========================

Fake Json Generator for mocking API

v1.1.0(9y ago)0541MITPHP

Since Feb 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/algenza/fake-json-generator)[ Packagist](https://packagist.org/packages/algenza/fake-json-generator)[ RSS](/packages/algenza-fake-json-generator/feed)WikiDiscussions master Synced today

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

Fake Json Generator
===================

[](#fake-json-generator)

[![Build Status](https://camo.githubusercontent.com/b9a9e067e8d14144aa779f71d9bd217f5171b5d1d097dac4b34be9e07d6aa3c4/68747470733a2f2f7472617669732d63692e6f72672f616c67656e7a612f66616b652d6a736f6e2d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/algenza/fake-json-generator)

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

[](#installation)

```
composer require algenza/fake-json-generator
```

How to use?
-----------

[](#how-to-use)

Make schema

```
{
    "type": "object",
    "properties": {
        "users": {
            "type": "object",
            "minimum": 102,
            "maximum": 101,
            "properties": {
                "id": {
                    "value": "faker.randomNumber"
                    "unique": true,
                },
                "name": {
                    "value": "faker.name"
                },
                "email": {
                    "value": "faker.email"
                },
                "hallo": {
                    "value": "hallo"
                },
                "phone": {
                    "type": "array",
                    "minimum": 1,
                    "maximum": 1,
                    "items": {
                        "value": "faker.e164PhoneNumber"
                    }
                }
            }
        },
        "Companies": {
            "type": "object",
            "minimum": 20,
            "maximum": 20,
            "properties": {
                "id": {
                    "definition" : "uniqueId"
                },
                "name": {
                    "value": "faker.company"
                    "unique": true
                },
                "suffix": {
                    "value": "faker.companySuffix"
                },
                "address": {
                    "value": "faker.streetName"
                },
                "type": {
                    "value": "Type A"
                },
                "phone": {
                    "type": "array",
                    "minimum": 1,
                    "maximum": 1,
                    "items": {
                        "value": "faker.e164PhoneNumber"
                    }
                }
            }
        }
    },
    "required": ["users","companies"],
    "definitions" : {
        "uniqueId" : {
            "value": "faker.randomNumber",
            "unique": true
        }
    }
}
```

then generate

```
use Algenza\Fjg\Generator;

$schemaPath = 'path_to_schema';
$jsonPath = 'path_to_generated_json';

$generator = new Generator($schemaPath, $jsonPath);
$generator->run();
```

Lisence
-------

[](#lisence)

MIT

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

3414d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5905964?v=4)[Billy Renyut](/maintainers/algenza)[@algenza](https://github.com/algenza)

---

Top Contributors

[![engineer-create](https://avatars.githubusercontent.com/u/282422669?v=4)](https://github.com/engineer-create "engineer-create (14 commits)")[![algenza](https://avatars.githubusercontent.com/u/5905964?v=4)](https://github.com/algenza "algenza (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/algenza-fake-json-generator/health.svg)

```
[![Health](https://phpackages.com/badges/algenza-fake-json-generator/health.svg)](https://phpackages.com/packages/algenza-fake-json-generator)
```

###  Alternatives

[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)

PHPackages © 2026

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