PHP code example of omnishield / disposable

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

    

omnishield / disposable example snippets


use Omnishield\Disposable\DisposableGatewayFactory;
use Omnishield\Model\Identity;

$emails = (new DisposableGatewayFactory())->create(['allow' => ['example-school.org']]);

$emails->lookup(new Identity(email: '[email protected]'))->known;   // true: mailinator.com, subdomains