Блог Серії
Кар'єра
Вакансії Компанії
Навчання
Співбесіди Тестування Відео
Екосистема
Пакети Ресурси Проєкти
Інше
Події Про нас

Laravel Api To Postman

andreaselia/laravel-api-to-postman
v2.3.0 13 1,048 642.3k 17 березня 2026 5
На GitHub

Автоматично генерує колекцію Postman з вашого Laravel API.

Поділитись

README

Laravel API to Postman Header

Latest Stable Version StyleCI

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 POST and PUT 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:

composer require andreaselia/laravel-api-to-postman

Publish the config file:

php artisan vendor:publish --provider="AndreasElia\PostmanGenerator\PostmanGeneratorServiceProvider"

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:

php artisan export:postman

The following usage will generate routes with the bearer token specified.

php artisan export:postman --bearer="1|XXNKXXqJjfzG8XXSvXX1Q4pxxnkXmp8tT8TXXKXX"

The following usage will generate routes with the basic auth specified.

php artisan export:postman --basic="username:password123"

If both auths are specified, bearer will be favored.

Examples

This is with the default configuration and a bearer token passed in:

php artisan export:postman --bearer=123456789

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.

Коментарі

Увійдіть, щоб залишити коментар

Будьте першим, хто залишить коментар!

Схожі пакети

Cms

statamic/cms

Основний пакет системи керування вмістом Statamic.

4,836 v6.23.0 13 6

Platform

orchidsoftware/platform

Платформа для розробки back-office додатків, адмін-панелей та CMS для Laravel-застосунків.

4,791 14.53.0 13 7

Twill

area17/twill

Twill — це інструментарій CMS з відкритим кодом для Laravel, який допомагає розробникам швидко створювати інтуїтивну, потужну та гнучку адмін-консоль.

3,957 3.5.3 12 4

Crud

laravel-backpack/crud

Швидко створюй адміністративні інтерфейси за допомогою Laravel, Bootstrap та JavaScript.

3,375 7.0.50 13 6

Blueprint

laravel-shift/blueprint

Виразний інструмент генерації коду, який написаний зрозумілою для людини мовою.

3,110 v2.13.0 12 4

Larecipe

saleem-hadad/larecipe

Генерує красиві рецепти для Laravel-застосунків, використовуючи MarkDown.

2,502 v2.9.1 13 2