PHP code example of mohamed-ayman / laravel-postman-generator

1. Go to this page and download the library: Download mohamed-ayman/laravel-postman-generator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mohamed-ayman / laravel-postman-generator example snippets


use MohamedAyman\LaravelPostmanGenerator\PostmanGenerator;

$generator = app(PostmanGenerator::class);

// Generate collection
$collection = $generator->generate([
    'collection_name' => 'My API',
    'base_url' => 'https://api.example.com',
    '
bash
php artisan vendor:publish --tag=postman-generator-config
bash
php artisan postman:generate
bash
php artisan postman:generate --name="My Awesome API"
bash
php artisan postman:generate --
bash
php artisan postman:generate --
bash
php artisan postman:generate --exclude=telescope --exclude=horizon