paws1234/laravel-postman-generator
最新稳定版本:v1.0.0
Composer 安装命令:
composer require paws1234/laravel-postman-generator
包简介
Generate Postman collections & environments from Laravel routes and FormRequests.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-12-31