essejblack/laravel-postman-exporter

Export Laravel routes and FormRequest validation rules as a Postman collection.

Maintainers

Package info

github.com/essejblack/laravel-postman-exporter

pkg:composer/essejblack/laravel-postman-exporter

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-06-03 13:47 UTC

This package is auto-updated.

Last update: 2026-06-03 14:08:02 UTC


README

Export Laravel API routes and FormRequest validation rules as a Postman Collection v2.1 JSON file.

Installation

composer require essejblack/laravel-postman-exporter

Publish Config

php artisan vendor:publish --tag=postman-exporter-config

Usage

php artisan postman:export --pretty

The collection will be exported to:

storage/app/postman/api_collection.json

Features

  • Export Laravel API routes
  • Export route parameters as Postman variables
  • Extract FormRequest validation rules
  • Generate sample request bodies
  • Configure default values from published config
  • Bearer token collection auth
  • Postman Collection v2.1 output

Config

After publishing the config file, edit:

config/postman-exporter.php

You can configure:

  • collection name
  • base URL
  • auth token variable
  • default headers
  • route parameter samples
  • request body sample values
  • excluded routes
  • PUT/PATCH behavior

License

MIT