PHP code example of sharadkashyap / php-api-authentication-debugger

1. Go to this page and download the library: Download sharadkashyap/php-api-authentication-debugger 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/ */

    

sharadkashyap / php-api-authentication-debugger example snippets

bash
php bin/api-auth-debug --url=https://api.example.test/v1/profile --status=401
text
php bin/api-auth-debug --url=<url> [options]
bash
php bin/api-auth-debug --url=https://api.example.test/v1/orders --status=403 --header="X-API-Key: example-key"