Skip to content

Instantly share code, notes, and snippets.

@opdavies
Created December 5, 2016 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save opdavies/6ab092695bce5e6c765a3447b4586178 to your computer and use it in GitHub Desktop.
Save opdavies/6ab092695bce5e6c765a3447b4586178 to your computer and use it in GitHub Desktop.
<?php
require __DIR__ . '/vendor/autoload.php';
use Opdavies\GmailFilterBuilder\Builder;
use Opdavies\GmailFilterBuilder\Filter;
$filters[] = Filter::create()
->has('from:foo@example.com')
->labelAndArchive('Test')
->neverSpam();
new Builder($filters);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment