PHPackages                             fixwa/http-client-collection-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fixwa/http-client-collection-generator

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

fixwa/http-client-collection-generator
======================================

Generate Insomnia(r) collection.

1.3(3y ago)141MITPHP

Since Jun 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/fixwa/http-client-collection-generator)[ Packagist](https://packagist.org/packages/fixwa/http-client-collection-generator)[ RSS](/packages/fixwa-http-client-collection-generator/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

HTTP Client - Collection Generator
==================================

[](#http-client---collection-generator)

This tool was created to facilitate the generation of import files (in JSON format) compatible with HTTP-Clients/API-Clients like [Postman](https://www.postman.com/) or [Insomnia](https://insomnia.rest/) to programmatically collect requests and automate such task for documentation or analysis purposes.

Currently, only INSOMNIA is supported.

Installation and Usage
----------------------

[](#installation-and-usage)

```
composer require --dev fixwa/http-client-collection-generator

```

```
$generator = new Fixwa\HttpClientCollectionGenerator\Insomnia\Generator();

$generator->name('The Collection')
    ->group('Pokedex API')
    ->addRequest([
        'name' => 'Get Vaporeon Info',
        'url' => 'https://pokeapi.co/api/v2/pokemon/vaporeon',
        'method' => 'GET',
        'description' => 'Obtain information about the gorgeous Vaporeon'
    ]);
$generator->generateJson();

```

the code above will return a JSON string that can be used directly in Insomnia to import from clipboard or saved to a file and import it using the option: **CREATE -&gt; Import From**

[![Import Insomnia](https://camo.githubusercontent.com/629f039b62b6c09a8482a52069372ee7ed14483f533045fd119cb4492aaede50/68747470733a2f2f66697877612e6e696d6275737765622e6d652f626f782f6174746163686d656e742f373033313133352f35336836766b63306d6e387362783036373937652f4c454f636638455659686143336576572f53637265656e25323053686f74253230323032322d30362d3033253230617425323032322e31312e30362e706e67)](https://camo.githubusercontent.com/629f039b62b6c09a8482a52069372ee7ed14483f533045fd119cb4492aaede50/68747470733a2f2f66697877612e6e696d6275737765622e6d652f626f782f6174746163686d656e742f373033313133352f35336836766b63306d6e387362783036373937652f4c454f636638455659686143336576572f53637265656e25323053686f74253230323032322d30362d3033253230617425323032322e31312e30362e706e67)

For the given example, the imported collection should look like the following:

[![Imported Insomnia](https://camo.githubusercontent.com/9bb0c2b8c08c383d8fad4520a8e0d314fcdc0e06d5de4e655c83cd01fb265e6f/68747470733a2f2f66697877612e6e696d6275737765622e6d652f626f782f6174746163686d656e742f373033313133352f35336836766b63306d6e387362783036373937652f7833713662616450724b396b777638772f73637265656e73686f742d6e696d6275737765622e6d652d323032322e30362e30332d32325f30355f31382e706e67)](https://camo.githubusercontent.com/9bb0c2b8c08c383d8fad4520a8e0d314fcdc0e06d5de4e655c83cd01fb265e6f/68747470733a2f2f66697877612e6e696d6275737765622e6d652f626f782f6174746163686d656e742f373033313133352f35336836766b63306d6e387362783036373937652f7833713662616450724b396b777638772f73637265656e73686f742d6e696d6275737765622e6d652d323032322e30362e30332d32325f30355f31382e706e67)

TODOs (ETA 2099)
================

[](#todos-eta-2099)

This is a very basic version that will cover the basic needs. Pending features are:

- Output to file.
- Import requests directly from php-curl extension.
- Import requests directly from Guzzle.
- Support other major HTTP Clients (Postman, Testfully.io, Thunder).

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

1362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0e4cd29b29f6bbc49fbe5852299f902b0b24a4c817ed2afb1ce216b82213e65?d=identicon)[fixwa](/maintainers/fixwa)

---

Top Contributors

[![fixwa](https://avatars.githubusercontent.com/u/1794477?v=4)](https://github.com/fixwa "fixwa (2 commits)")

---

Tags

helperdevgeneratorrest-clientPostmaninsomniatestfully

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fixwa-http-client-collection-generator/health.svg)

```
[![Health](https://phpackages.com/badges/fixwa-http-client-collection-generator/health.svg)](https://phpackages.com/packages/fixwa-http-client-collection-generator)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k129.4M832](/packages/barryvdh-laravel-ide-helper)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k116.2M674](/packages/symfony-maker-bundle)[simplesoftwareio/simple-qrcode

Simple QrCode is a QR code generator made for Laravel.

2.9k29.5M105](/packages/simplesoftwareio-simple-qrcode)[shipmonk/composer-dependency-analyser

Fast detection of composer dependency issues (dead dependencies, shadow dependencies, misplaced dependencies)

6187.9M594](/packages/shipmonk-composer-dependency-analyser)[beste/json

A simple JSON helper to decode and encode JSON

4225.4M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3432.2M22](/packages/chillerlan-php-settings-container)

PHPackages © 2026

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