paws1234 / laravel-postman-generator
Generate Postman collections & environments from Laravel routes and FormRequests.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/paws1234/laravel-postman-generator
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0|^11.0|^12.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^8.0|^9.0|^10.0
- phpunit/phpunit: ^10.0|^11.0
README
Generate Postman collections + environments from Laravel routes and FormRequests.
Requirements
- PHP 8.1+ (Laravel 9)
- PHP 8.2+ (Laravel 10/11/12)
- Laravel 9/10/11/12
Installation
Install via Packagist:
composer require paws1234/laravel-postman-generator --dev
No need to modify your composer.json manually—Composer will fetch the package automatically.
Usage
Generate Postman collection:
php artisan postman:generate
Clear generated files:
php artisan postman:clear
Configuration
Publish and edit the config file:
php artisan vendor:publish --provider="paws1234\LaravelPostmanGenerator\PostmanGeneratorServiceProvider"
Features
- Postman collection and environment generation
- FormRequest body inference
- Multi-auth support
- Grouping by prefix/controller
- Deterministic output
- CLI commands for generation and cleanup
Requirements
- PHP 8.1+ (Laravel 9)
- PHP 8.2+ (Laravel 10/11/12)
- Laravel 9/10/11/12
How It Works
- Scans routes and FormRequests
- Builds Postman collections and environments
- Supports advanced grouping and authentication
Testing
Run tests with:
vendor/bin/phpunit --testdox
Contributing
PRs and issues welcome! Please ensure new features include tests.