Skip to content

udartsev/LaravelPostmanExport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Postman export

Updates:

  1. Postman collection scheme
  2. Artisan consol commands
  3. Can post project URL address via console
  4. Basic file name change to postman_collection.json
  5. Exporting @descriptions / @desc / @des
  6. Exporting @params

Installation

Install via composer:

composer require --dev udartsev/laravel-postman-export

Add the service provider to your providers array in config/app.php

udartsev\LaravelPostmanExport\PostmanServiceProvider::class,

That's all!

Usage

php artisan postman:export

This will create a postman_collection.json inside your storage/app folder. You are free to change the name of the file by specifying the filename as follows:

php artisan postman:export --name=MyAppName --url=http://localhost --port=8000 --api

phpdoc Code rules

@var

`class Foo { /**

  • @var string $name Should contain a description
  • @var string $description Should contain a description */ protected $name, $description; }`

@param

` /**

  • Counts the number of items in the provided array.
  • @param mixed[] $items Array structure to count the elements of.
  • @return int Returns the number of elements. */ function count(array $items) { <...> } `

@return

`/**

  • @return integer Indicates the number of items. */ function count() { <...> }`

@description

phpdoc.org

About

Laravel 5.8+ package to create Postman_collection.json file with Laravel routes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages