Download the PHP package mirxan/postman-exporter without Composer
On this page you can find all versions of the php package mirxan/postman-exporter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mirxan/postman-exporter
More information about mirxan/postman-exporter
Files in mirxan/postman-exporter
Package postman-exporter
Short Description Laravel API to Postman Collection exporter with comment-driven customization
License MIT
Homepage https://github.com/mirxan/laravel-postman-exporter
Informations about the package postman-exporter
Laravel Postman Exporter 📨
A developer-friendly Laravel package that automatically generates a complete Postman collection from your routes using PHPDoc-style comments or global configuration. It supports response/parameter detection, headers, bearer authentication, resource structure detection, folder-based grouping — and even Postman environment export!
🚀 Installation
Via Composer:
If you're installing from a GitHub repo:
🔧 Publish Configuration
Run the following command to publish the configuration file:
This will create the config file at:
config/postman-exporter.php
⚙️ Configuration Example
📤 Exporting Postman Collection
Run the export command:
It will generate the collection file in:
storage/app/postman/
You can import the .json file into Postman to test your Laravel API endpoints.
🔄 Optional: Sync with Postman API
If you want to automatically sync your collection and environment with Postman (via their API), run the command with the --sync option:
This will:
✅ Upload or update your collection on your Postman account ✅ Upload or update your environment file
🌍 Exporting Postman Environment This package also exports a ready-to-use Postman environment file:
This allows you to easily manage API variables like APP_URL, TOKEN, etc., within Postman.
✏️ DocBlock Comments for Customization
Add PHPDoc-style annotations to your controller methods:
These annotations will be parsed and added to your Postman request definition.
📦 Response Auto-Detection
Automatically detects JsonResource and ResourceCollection responses:
return new UserResource($user); // → type: object
return UserResource::collection($users); // → type: array[object]
This removes the need for manually defining response schemas.
📁 Output Example
storage/app/postman/1721753093_myapp_collection.json
storage/app/postman/laravel_environment.json
You can import both the collection and environment JSON files into Postman.
✅ Features ✅ Laravel 9.x to 12.x support
✅ PHP 8.0 to 8.4 compatibility
✅ Automatically generates Postman collections
✅ Header and parameter detection from PHPDoc
✅ JsonResource and Collection detection
✅ Environment file generation with custom variables
✅ Folder-based grouping and authentication
✅ Supports content types: form-data, json, x-www-form-urlencoded
🛠 Contributing
Pull requests are welcome! Please feel free to open issues or suggest features.
📄 License
MIT License © 2025 Muhammadamin Nematov ([email protected])
All versions of postman-exporter with dependencies
illuminate/support Version ^9.0 || ^10.0 || ^11.0 || ^12.0