PHPackages                             nabilaahmed/laravel-postman-exporter - 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. nabilaahmed/laravel-postman-exporter

ActiveLibrary[API Development](/categories/api)

nabilaahmed/laravel-postman-exporter
====================================

Automatically export and sync Laravel API routes to Postman Collections

v1.0.2(3mo ago)13MITPHPPHP ^8.2

Since Mar 13Pushed 3mo agoCompare

[ Source](https://github.com/Nabilaahmed2000/postman-exporter)[ Packagist](https://packagist.org/packages/nabilaahmed/laravel-postman-exporter)[ RSS](/packages/nabilaahmed-laravel-postman-exporter/feed)WikiDiscussions main Synced 3w ago

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

Laravel Postman Exporter
========================

[](#laravel-postman-exporter)

🚀 **Automatically sync your Laravel API routes with Postman.**

This package iterates through your Laravel routes (api middleware), generates smart JSON request bodies by inspecting your `FormRequest` classes, and syncs them directly to a Postman Collection using the Postman API.

Features
--------

[](#features)

- **Auto-Sync**: Creates or updates Postman Collections directly from your CLI.
- **Smart Data**: Inspects `rules()` in your `FormRequest` to generate realistic sample JSON data.
- **Organization**: Automatically organizes routes into folders based on route prefixes.
- **Environment Ready**: Automatically sets up `{{base_url}}` as a Postman variable.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10.0 or 11.0

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

[](#installation)

1. **Install via Composer:**

    ```
    composer require nabilaahmed/laravel-postman-exporter
    ```
2. **Publish Configuration:**

    ```
    php artisan vendor:publish --provider="NabilaAhmed\PostmanExporter\PostmanExporterServiceProvider"
    ```
3. **Configure .env:**Add your Postman credentials to your `.env` file:

    ```
    POSTMAN_EXPORTER_API_KEY=your_postman_api_key
    POSTMAN_EXPORTER_WORKSPACE_ID=your_workspace_id
    ```

Usage
-----

[](#usage)

Run the command to start the export:

```
php artisan export:postman
```

The tool will:

1. Ask for a Collection Name.
2. Search for an existing collection with that name in your workspace.
3. If it exists, it updates it. If not, it creates a new one.
4. Export all routes using the `api` middleware.

Smart Data Generation
---------------------

[](#smart-data-generation)

If your controller method uses a `FormRequest`, like this:

```
public function store(CreateUserRequest $request) { ... }
```

The tool will look at `CreateUserRequest::rules()`:

```
return [
    'name' => 'required|string',
    'email' => 'required|email|unique:users',
];
```

And generate this in Postman:

```
{
    "name": "Sample text",
    "email": "user@example.com"
}
```

License
-------

[](#license)

MIT

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance80

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

2

Last Release

105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/615a78700612f836c91c6267923494ae945f976fc5573468144ce6004db4699f?d=identicon)[nabila\_ahmed](/maintainers/nabila_ahmed)

### Embed Badge

![Health badge](/badges/nabilaahmed-laravel-postman-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/nabilaahmed-laravel-postman-exporter/health.svg)](https://phpackages.com/packages/nabilaahmed-laravel-postman-exporter)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.7M64](/packages/spatie-laravel-responsecache)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

76518.2M120](/packages/laravel-mcp)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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