PHPackages                             mertcanureten/laravel-postman-collection - 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. mertcanureten/laravel-postman-collection

ActiveLibrary[API Development](/categories/api)

mertcanureten/laravel-postman-collection
========================================

A Laravel package to generate Postman collections from API routes.

v1.0.5(1y ago)191PHPPHP ^7.3|^8.2

Since Sep 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mertcanureten/LaravelPostmanCollection)[ Packagist](https://packagist.org/packages/mertcanureten/laravel-postman-collection)[ RSS](/packages/mertcanureten-laravel-postman-collection/feed)WikiDiscussions main Synced 1mo ago

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

Laravel Postman Collection
==========================

[](#laravel-postman-collection)

This is a Laravel package that allows you to generate a Postman collection from your Laravel API routes and export it for easy import into the Postman application.

Features
--------

[](#features)

- 🔄 Automatically generates Postman collection from Laravel API routes
- 🔑 Built-in authentication support (Bearer Token, Basic Auth)
- 📁 Groups API endpoints by their URL prefix for better organization
- 📝 Includes route descriptions from PHPDoc comments
- 🔍 Dynamic model parameter detection
- 🎯 Default headers for JSON API requests
- ⚡ Easy to install and use

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

[](#installation)

You can install this package via Composer:

```
composer require mertcanureten/laravel-postman-collection
```

Usage
-----

[](#usage)

Once the package is installed, you can use the following Artisan command to export your API routes to a Postman collection:

```
php artisan postman:export
```

### Command Options

[](#command-options)

- `--output`: Specify the output file name (default: `postman_collection.json`)
- `--name`: Set a custom name for the collection
- `--auth-type`: Specify the authentication type (bearer|basic)

### Examples

[](#examples)

Basic usage:

```
php artisan postman:export
```

With custom options:

```
php artisan postman:export --output=api.json --name="My API" --auth-type=bearer
```

Generated Collection Features
-----------------------------

[](#generated-collection-features)

The generated Postman collection includes:

- Grouped endpoints by URL prefix
- Authentication settings (Bearer Token by default)
- Default headers for JSON API requests:
    - `Accept: application/json`
    - `Content-Type: application/json`
- Route descriptions from PHPDoc comments
- Parameter details with types and descriptions
- Pre-configured JSON request bodies

Importing into Postman
----------------------

[](#importing-into-postman)

After generating the collection, follow these steps to import it into Postman:

1. Open Postman
2. Click on "Import" in the top-left corner
3. Select the generated JSON file
4. Click "Import" to add the collection to your workspace

### Authentication Setup

[](#authentication-setup)

The collection comes with pre-configured Bearer Token authentication. To use it:

1. Create an environment in Postman
2. Add a variable named `auth_token`
3. Set your API token as the variable value

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

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

3

Last Release

593d ago

### Community

Maintainers

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

---

Top Contributors

[![mertcanureten](https://avatars.githubusercontent.com/u/45558437?v=4)](https://github.com/mertcanureten "mertcanureten (17 commits)")

### Embed Badge

![Health badge](/badges/mertcanureten-laravel-postman-collection/health.svg)

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

###  Alternatives

[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

2.9k34.0M112](/packages/darkaonline-l5-swagger)[echolabsdev/prism

A powerful Laravel package for integrating Large Language Models (LLMs) into your applications.

2.3k388.3k10](/packages/echolabsdev-prism)[sburina/laravel-whmcs-up

WHMCS API client and user provider for Laravel

271.3k](/packages/sburina-laravel-whmcs-up)

PHPackages © 2026

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