Download the PHP package andreaselia/laravel-api-to-postman without Composer
On this page you can find all versions of the php package andreaselia/laravel-api-to-postman. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andreaselia/laravel-api-to-postman
More information about andreaselia/laravel-api-to-postman
Files in andreaselia/laravel-api-to-postman
Package laravel-api-to-postman
Short Description Generate a Postman collection automatically from your Laravel API
License MIT
Informations about the package laravel-api-to-postman
Laravel API to Postman
This package allows you to automatically generate a Postman collection based on your API routes. It also provides basic configuration and support for bearer auth tokens and basic auth for routes behind an auth middleware.
For and requests that utilizes a FormRequest, you can optionally scaffold the request, and publish rules in raw or human readable format.
Postman Schema
The generator works for the latest version of the Postman Schema at the time of publication (v2.1.0).
Installation
Install the package:
Publish the config file:
Configuration
You can modify any of the api-postman.php
config values to suit your export requirements.
Click here to view the config attributes.
Usage
The output of the command being ran is your storage/app directory.
To use the command simply run:
The following usage will generate routes with the bearer token specified.
The following usage will generate routes with the basic auth specified.
If both auths are specified, bearer will be favored.
Examples
This is with the default configuration and a bearer token passed in:
- Example routes
- Example default output
- Example structured output
Contributing
You're more than welcome to submit a pull request, or if you're not feeling up to it - create an issue so someone else can pick it up.
All versions of laravel-api-to-postman with dependencies
ext-json Version *
illuminate/config Version ^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/console Version ^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/contracts Version ^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/routing Version ^7.0|^8.0|^9.0|^10.0|^11.0
phpstan/phpdoc-parser Version ^1.26