PHPackages                             profclems/postman-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. [API Development](/categories/api)
4. /
5. profclems/postman-collection-generator

ActiveLibrary[API Development](/categories/api)

profclems/postman-collection-generator
======================================

A package that automatically generate postman collection from laravel api/web routes

v1.2.0(5y ago)6734.8k↓35.6%5MITPHPPHP &gt;=7.1CI passing

Since Jun 18Pushed 4y ago4 watchersCompare

[ Source](https://github.com/profclems/postman-collection-generator)[ Packagist](https://packagist.org/packages/profclems/postman-collection-generator)[ RSS](/packages/profclems-postman-collection-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0e2ce347eec1481edafd26da57a4288d67fb1f75ba64506be6c6c3715538faba/68747470733a2f2f7472617669732d63692e636f6d2f70726f66636c656d732f706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/profclems/postman-collection-generator)[![Latest Stable Version](https://camo.githubusercontent.com/7679244825c40a369c9625b57be276a632cb82fefc3bcedf79f18e5b414712de/68747470733a2f2f706f7365722e707567782e6f72672f70726f66636c656d732f706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722f76)](//packagist.org/packages/profclems/postman-collection-generator)[![Total Downloads](https://camo.githubusercontent.com/30609a543f593aef9707e175b257191e2dded0d31461c7c621964e9461643426/68747470733a2f2f706f7365722e707567782e6f72672f70726f66636c656d732f706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722f646f776e6c6f616473)](//packagist.org/packages/profclems/postman-collection-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/8133a869f65b54c2544e7fa12de9e3007c385cfaedd34e5dd4ba2cbb45ba6e24/68747470733a2f2f706f7365722e707567782e6f72672f70726f66636c656d732f706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722f762f756e737461626c65)](//packagist.org/packages/profclems/postman-collection-generator)[![License](https://camo.githubusercontent.com/4d35d388048730da78ecf560cae3402a4db491eeb31c0ee4c87ab7642bf44e22/68747470733a2f2f706f7365722e707567782e6f72672f70726f66636c656d732f706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722f6c6963656e7365)](https://github.com/profclems/postman-collection-generator/blob/master/LICENSE)[![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/profclems/postman-collection-generator/issues)[![FOSSA Status](https://camo.githubusercontent.com/e0993d01284738c6637de98c5d2d5d1071eaa6d592b3c2bdd4c11370d8b84c26/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324670726f66636c656d73253246706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722e7376673f747970653d736869656c64)](https://app.fossa.com/projects/git%2Bgithub.com%2Fprofclems%2Fpostman-collection-generator?ref=badge_shield)

About
-----

[](#about)

This package automatically generates postman collection from laravel api/web routes with just a single command

Postman Schema
--------------

[](#postman-schema)

Supports postman collection [Schema v2.1.0](https://schema.getpostman.com/json/collection/v2.1.0/collection.json)

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

[](#installation)

Install this bundle through [Composer](https://getcomposer.org/):

```
composer require profclems/postman-collection-generator
```

Supports Auto-discovery for Laravel 5.5+

For older versions add the PostmanCollectionServiceProvider to providers in the config/app.php

```
'providers' => [
    ...
    \Profclems\PostmanCollectionGenerator\PostmanCollectionServiceProvider::class,
];
```

Usage
-----

[](#usage)

To generate collection for api routes, run

```
php artisan postman:collection:export NameForCollection --api
```

This will generate a `yyyy_mm_dd_his_NameForCollection_api.json` in your Laravel `storage/app` folder.

To generate collection for web routes, run

```
php artisan postman:collection:export NameForCollection --web
```

This will generate a `yyyy_mm_dd_his_NameForCollection_web.json` in your Laravel `storage/app` folder.

Change `NameForCollection` to the name you want the collection file saved as.

Options
-------

[](#options)

By default, the url is set to `{{base_url}}` which is a postman variable that can be set in your postman environment.

```
--api or --web to specify the type of route to export
--url to specify the url for the collection. Eg. --url=localhost
--port to specify the port. Eg --port=8000
```

ToDo
----

[](#todo)

- Add support for other popular PHP frameworks
- Convert postman collection to api/web routes

Contributing
------------

[](#contributing)

Thank you for considering contributing to the this package! Feel free to submit a PR

Awards / Nominations
--------------------

[](#awards--nominations)

[![PHP Classes Innovative Award Nominee](https://camo.githubusercontent.com/8095982c179584831fdd3732297f93867bb39fa8b132b5c6c904a09198dd3d7a/68747470733a2f2f7777772e706870636c61737365732e6f72672f61776172642f696e6e6f766174696f6e2f6e6f6d696e65652e676966 "PHP Classes Innovative Award June 2020 Nominee")](https://www.phpclasses.org/package/11687-PHP-Generate-routes-for-an-API-or-Web-applications.html)

License
-------

[](#license)

[![FOSSA Status](https://camo.githubusercontent.com/c2a8d5919d0ab4f8f4b31c8537585bcd59020a62ccb7b95dabede74e62c737cc/68747470733a2f2f6170702e666f7373612e636f6d2f6170692f70726f6a656374732f6769742532426769746875622e636f6d25324670726f66636c656d73253246706f73746d616e2d636f6c6c656374696f6e2d67656e657261746f722e7376673f747970653d6c61726765)](https://app.fossa.com/projects/git%2Bgithub.com%2Fprofclems%2Fpostman-collection-generator?ref=badge_large)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80.7% 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 ~41 days

Recently: every ~50 days

Total

7

Last Release

1911d ago

PHP version history (2 changes)1.0.0PHP &gt;=7

v1.2.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/54d2a75a11131398a971e298cc56f53a6cc03dc06a1f35fd5618e194939113a0?d=identicon)[profclems](/maintainers/profclems)

---

Top Contributors

[![profclems](https://avatars.githubusercontent.com/u/41906128?v=4)](https://github.com/profclems "profclems (46 commits)")[![Moundlen](https://avatars.githubusercontent.com/u/48211498?v=4)](https://github.com/Moundlen "Moundlen (6 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")[![andreaselia](https://avatars.githubusercontent.com/u/5033092?v=4)](https://github.com/andreaselia "andreaselia (1 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")[![touchstorm](https://avatars.githubusercontent.com/u/38663589?v=4)](https://github.com/touchstorm "touchstorm (1 commits)")[![uintaam](https://avatars.githubusercontent.com/u/295346?v=4)](https://github.com/uintaam "uintaam (1 commits)")

---

Tags

composer-packagelaravel-packagelibraryphp

### Embed Badge

![Health badge](/badges/profclems-postman-collection-generator/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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