PHP code example of nutandc / laravel-postman-generator
1. Go to this page and download the library: Download nutandc/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/ */
nutandc / laravel-postman-generator example snippets
use Nutandc\PostmanGenerator\Attributes\EndpointDoc;
#[EndpointDoc(
summary: 'List users',
tags: ['Users'],
auth: 'bearer',
headers: [
['name' => 'X-Request-ID', 'value' => '{{request_id}}', ' ],
)]
public function index() {}