PHP code example of emailreputationapi / reputation

1. Go to this page and download the library: Download emailreputationapi/reputation 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/ */

    

emailreputationapi / reputation example snippets


return [
    'api_key' => env('EMAIL_REPUTATION_API_SECRET'),
    'api_url' => env('EMAIL_REPUTATION_API_URL'),
];

$era = new EmailReputationAPI\Reputation\Email;
$valid = $era->validate('[email protected]');
= {
    +"email": "[email protected]",
    +"syntax": "valid",
    +"tld": "true",
    +"personal": "false",
    +"disposable": "false",
    +"business": "false",
    +"government": "false",
    +"unknown": "true",
  }
bash
$ php artisan vendor:publish --tag="reputation-config"