PHPackages                             quyennguyenitz/response-simulator - 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. quyennguyenitz/response-simulator

ActiveProject[API Development](/categories/api)

quyennguyenitz/response-simulator
=================================

API response simulator.

v1.0.0(7y ago)048MITPHPPHP &gt;=7.1

Since Dec 26Pushed 7y ago1 watchersCompare

[ Source](https://github.com/quyennguyenitz/response-simulator)[ Packagist](https://packagist.org/packages/quyennguyenitz/response-simulator)[ RSS](/packages/quyennguyenitz-response-simulator/feed)WikiDiscussions master Synced today

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

API Response Simulator
======================

[](#api-response-simulator)

Response Simulator for Lumen 5 This package is created by [Quyen Nguyen](mailto:quyennguyenitz@gmail.com). This package adapted to work with Lumen 5.7.

Installation
============

[](#installation)

`composer require quyennguyenitz/response-simulator`

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

[](#configuration)

Usage
=====

[](#usage)

Integer
-------

[](#integer)

OptionDescriptionvalue:valSpecific response valuein:val\_1,val\_2,...Random a value in collectionrange:min,maxRange of response value**Example:** `"id"=>"integer|value:10|in:0,1|range:1,100"`

String
------

[](#string)

OptionDescriptionlength:valString lengthin:val\_1,val\_2,...Random a value in collection**Example:** `"name"=>"string|length:20|in:New,Approved,Rejected"`

Code
----

[](#code)

OptionDescriptionprefix:valCode prefixcontent:datatype,lengthCode content, datatype is string or integersuffix:valCode suffix**Example:** `"code"=>"code|prefix:PRE-|content:string,10|suffix:-SUF"`

Date
----

[](#date)

OptionDescriptionvalueSpecific response value, `value=current` going to return current time follow bellow formatformat:valData format, default `"Y-m-d"`min:valMin datemax:valMax date**Example** `"birthday"=>"date|value:2019-01-01|format:m-d-Y|min:01-01-2019|max:12-31-2019"`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

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 ~18 days

Total

2

Last Release

2674d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6768b3ebc6a9a52fd0c6a08b993bd6957be7ebedda1a0f240971ed841db8578d?d=identicon)[quyennguyenitz](/maintainers/quyennguyenitz)

---

Top Contributors

[![quyennguyenitz](https://avatars.githubusercontent.com/u/4974422?v=4)](https://github.com/quyennguyenitz "quyennguyenitz (1 commits)")

---

Tags

api-responseAPI response simulatorresponse simulatorAPI simulatorresponse simulate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/quyennguyenitz-response-simulator/health.svg)

```
[![Health](https://phpackages.com/badges/quyennguyenitz-response-simulator/health.svg)](https://phpackages.com/packages/quyennguyenitz-response-simulator)
```

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)

PHPackages © 2026

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