PHPackages                             adexyme/openapi-to-postman - 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. adexyme/openapi-to-postman

ActiveLibrary[API Development](/categories/api)

adexyme/openapi-to-postman
==========================

Converts OpenAPI specs., especially as generated by the Scramble API documentation generator, to a corresponding Postman collection in Laravel

v1.0.7(1y ago)019MITPHPPHP ^8.0

Since Apr 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Adexyme/openapi-to-postman)[ Packagist](https://packagist.org/packages/adexyme/openapi-to-postman)[ RSS](/packages/adexyme-openapi-to-postman/feed)WikiDiscussions main Synced today

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

OpenAPI to Postman Collection Generator

A simple CLI tool that reads an OpenAPI v3 JSON specification and generates a Postman Collection v2.1 JSON file. Use it to automate creating Postman collections from your API definitions.

Prerequisites

PHP 8.0 or higher

Composer installed globally:

A terminal (bash, zsh, PowerShell, etc.)

Installation

1. Global install via Packagist

Install the package globally so 'postman:generate' is available everywhere
==========================================================================

[](#install-the-package-globally-so-postmangenerate-is-available-everywhere)

composer global require adexyme/openapi-to-postman

Make sure your global Composer vendor/bin directory is in your PATH. For example on Unix/macOS:

export PATH="$HOME/.composer/vendor/bin:$PATH"

or if using Composer 2
======================

[](#or-if-using-composer-2)

export PATH="$HOME/.config/composer/vendor/bin:$PATH"

After this, you can run:

postman:generate --help

to verify the command is registered.

2. Per-project install (local)

If you only want to use the tool inside a specific Laravel project:

In your Laravel project root, add a path repository in composer.json:

{ "repositories": \[ { "type": "path", "url": "./packages/adexyme/openapi-to-postman", "options": { "symlink": true } } \], "require": { "adexyme/openapi-to-postman": "\*" } }

Install via Composer:

composer require adexyme/openapi-to-postman --prefer-source composer dump-autoload

Verify:

php artisan list | grep postman:generate

Usage

Generate a Postman Collection JSON from your OpenAPI file:

Basic usage:
============

[](#basic-usage)

postman:generate path/to/openapi.json

Specify output filename:
========================

[](#specify-output-filename)

postman:generate path/to/openapi.json output/postman\_collection.json

Group all requests under a folder name:
=======================================

[](#group-all-requests-under-a-folder-name)

postman:generate openapi.json --folder="My API Endpoints"

input: Path to your OpenAPI v3 JSON file.

output (optional): Where to write the Postman collection (defaults to postman\_collection.json in cwd).

\--folder: Wraps all items in a Postman folder of the given name.

After running, import the generated JSON file into Postman.

Example

Assuming openapi.json is in the current directory:
==================================================

[](#assuming-openapijson-is-in-the-current-directory)

postman:generate openapi.json collections/my-api.postman.json --folder="Wallet &amp; Transactions"

In Postman, go to Import → Upload File, select collections/my-api.postman.json, and your requests appear grouped under Wallet &amp; Transactions.

Contributing

Fork the repository

Clone your fork and create a branch:

git clone cd openapi-to-postman git checkout -b feature/your-feature

3. Make changes and submit a pull request

---

License
-------

[](#license)

MIT © Your Name

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance45

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

13

Last Release

432d ago

Major Versions

v0.0.6 → v1.0.02025-04-25

PHP version history (2 changes)v0.0.2PHP ^8.0

v0.0.6PHP ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0|| ^11.0 || ^12.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41364653?v=4)[Adegoke Emmanuel Akintoye](/maintainers/Adexyme)[@Adexyme](https://github.com/Adexyme)

---

Top Contributors

[![Adexyme](https://avatars.githubusercontent.com/u/41364653?v=4)](https://github.com/Adexyme "Adexyme (15 commits)")

### Embed Badge

![Health badge](/badges/adexyme-openapi-to-postman/health.svg)

```
[![Health](https://phpackages.com/badges/adexyme-openapi-to-postman/health.svg)](https://phpackages.com/packages/adexyme-openapi-to-postman)
```

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[rapidez/core

Rapidez Core

1823.5k72](/packages/rapidez-core)

PHPackages © 2026

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