damian-nz / laraman
A fluent way to export your Laravel routes to a Postman export
Requires
- illuminate/console: ~5.1
- illuminate/filesystem: ~5.1
- illuminate/routing: ~5.1
- illuminate/support: ~5.1
- ramsey/uuid: ^3
This package is not auto-updated.
Last update: 2024-11-19 21:09:01 UTC
README
A fork of the original repo by RL-Studio. I am currently maintaining until they wish to pick up the project again.
Now Laravel 5.5 compatible
Have you ever been building a huge API and you're sitting there with Postman to quickly look at your requests? It's tedious, right? So much copy-pasting routes and keeping track of them. Maybe at one point you started making some Postman collections? What if there was a better way, an easier way? There is. Laraman allows you to export all the routes that are registered in your application to a json file that can be imported into Postman.
Installation
Install via composer:
composer require --dev rl-studio/laraman
If using Laravel 5.4 or below, add the service provider to your providers
array in config/app.php
RLStudio\Laraman\ServiceProvider::class,
That's all!
Usage
To run the command, simply use
php artisan laraman:export
This will place a laraman-export.json
inside your storage/app
folder. You are free to change the name of the file by specifying the filename as follows:
php artisan laraman:export --name=my-app