Updates:
- Postman collection scheme
- Artisan consol commands
- Can post project URL address via console
- Basic file name change to postman_collection.json
- Exporting @descriptions / @desc / @des
- Exporting @params
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!
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
`class Foo { /**
- @var string $name Should contain a description
- @var string $description Should contain a description */ protected $name, $description; }`
` /**
- 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 integer Indicates the number of items. */ function count() { <...> }`