PHPackages                             oooiik/laravel-export-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. oooiik/laravel-export-postman

ActiveLibrary[API Development](/categories/api)

oooiik/laravel-export-postman
=============================

Automatically generate a Postman collection based on your API routes.

0.1.9(8mo ago)0897↓50%2[4 issues](https://github.com/oooiik/laravel-export-postman/issues)MITPHPPHP ^7.1|^8.0

Since May 20Pushed 8mo ago1 watchersCompare

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

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

Laravel Export to Postman
=========================

[](#laravel-export-to-postman)

Package allows you to automatically generate a Postman collection based on your routes.

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

[](#installation)

```
composer require oooiik/laravel-export-postman
```

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

[](#configuration)

You can modify any of the `export-postman.php` config values to suit your export requirements.

Php Comments Documentation for API Annotations
----------------------------------------------

[](#php-comments-documentation-for-api-annotations)

### Authentication

[](#authentication)

`@AuthNo`No authentication is required for the annotated API endpoint.

`@AuthParent`Inherits the authentication settings from the parent endpoint.

`@AuthBearer [token]`Requires Bearer token authentication. Replace `[token]` with the actual token. Example:

```
@AuthBearer abc123

```

### Headers

[](#headers)

`@Header [key] => [value]`Specifies a custom header for the API request. Replace `[key]` with the header name and `[value]` with the header value.

```
@Header Accept => application/json
@Header Content-Type => application/json

```

### Descriptions

[](#descriptions)

`@DescriptionContext [context]`Provides a brief description or context for the API request. Replace `[context]` with the description.

`@DescriptionBasePath [path]`Specifies the base path description for the API endpoint. Replace `[path]` with the base path. Example:

```
@DescriptionBasePath /dir/file

```

`@DescriptionResourcePath [path]`Specifies the resource path description for the API endpoint. Replace `[path]` with the resource path.

### Pre-Request Scripts

[](#pre-request-scripts)

`@PreRequestScriptContext [path]`Defines a pre-request script to be executed before the API request. Replace `[path]` with the context or location of the script.

`@PreRequestScriptFileBasePath [path]`Specifies the base path to the file containing the pre-request script. Replace `[path]` with the file location relative to the base directory.

`@PreRequestScriptFileResourcePath [path]`Specifies the resource path to the file containing the pre-request script. Replace `[path]` with the specific file location.

### Test Scripts

[](#test-scripts)

`@TestScriptContext [context]`Defines a test script to be executed after the API request. Replace `[context]` with the context or description of the test script.

`@TestScriptFileBasePath [path]`Specifies the base path to the file containing the test script. Replace `[path]` with the file location relative to the base directory.

`@TestScriptFileResourcePath [path]`Specifies the resource path to the file containing the test script. Replace `[path]` with the specific file location.

Example:

```
class Container ...
{
    /**
     * @AuthNo
     * @Header Accept => application/json
     * @DescriptionContext description for postman
     * @PreRequestScriptContext console.log('pre-request index method')
     * @TestScriptContext console.log('test index method')
     */
    public function index(...) {...}

    /**
     * @AuthBearer {{TOKEN}}
     * @PreRequestScriptFileBasePath ./dir/filename
     * @TestScriptFileResourcePath ./dir/filename
     */
    public function Show(...) {...}
}
```

Usage
-----

[](#usage)

```
php artisan export:postman
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance62

Regular maintenance activity

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

2

Last Release

242d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f56b318fe17172a3b59e47d2e378a4c415fecc96ed642024d3a2a51a0356220?d=identicon)[oooiik](/maintainers/oooiik)

---

Top Contributors

[![oooiik](https://avatars.githubusercontent.com/u/77920516?v=4)](https://github.com/oooiik "oooiik (19 commits)")

### Embed Badge

![Health badge](/badges/oooiik-laravel-export-postman/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k10.6M274](/packages/laravel-boost)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

74310.9M66](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)

PHPackages © 2026

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