gmail-filter-builder/examples/filters.php

16 lines
280 B
PHP
Raw Normal View History

<?php
use Opdavies\GmailFilterBuilder\Filter;
require_once __DIR__ . '/vendor/autoload.php';
return [
Filter::create()
->from('foo@example.com')
->labelAndArchive('Example'),
Filter::create()
->from('bar@example.com')
->important(),
];