mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-01-22 20:17:31 +00:00
Oliver Davies
8b38214205
Add a namespaced `filter()` method that can be imported via `use
function` and use it as an alternative for `new Filter` or
`Filter::create()`.
This provides a cleaner, easier to read syntax - particularly if you
have a lot of filters in the same file.
(cherry picked from commit 330d6f9393
)
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"name": "opdavies/gmail-filter-builder",
|
|
"description": "Generates XML to import as Gmail filters.",
|
|
"type": "library",
|
|
"license": "MIT",
|
|
"authors": [
|
|
{
|
|
"name": "Oliver Davies",
|
|
"email": "oliver@oliverdavies.uk"
|
|
}
|
|
],
|
|
"require": {
|
|
"php": "^7.1",
|
|
"symfony/config": "^3.4",
|
|
"symfony/console": "^3.4",
|
|
"symfony/dependency-injection": "^3.4",
|
|
"symfony/filesystem": "^3.4",
|
|
"symfony/yaml": "^3.4",
|
|
"tightenco/collect": "^5.4"
|
|
},
|
|
"require-dev": {
|
|
"friendsofphp/php-cs-fixer": "^2.11",
|
|
"phpunit/phpunit": "^5.7 || ^7.0",
|
|
"symfony/var-dumper": "^3.4"
|
|
},
|
|
"autoload": {
|
|
"files": ["src/Helpers.php"],
|
|
"psr-4": {
|
|
"Opdavies\\GmailFilterBuilder\\": "src/"
|
|
}
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Tests\\Opdavies\\GmailFilterBuilder\\": "tests/"
|
|
}
|
|
},
|
|
"extra": {
|
|
"branch-alias": {
|
|
"dev-master": "1.1-dev"
|
|
}
|
|
},
|
|
"bin": ["bin/generate-filters", "bin/generate-filters.php"],
|
|
"config": {
|
|
"sort-packages": true
|
|
},
|
|
"scripts": {
|
|
"lint": "php-cs-fixer fix",
|
|
"test": "phpunit && composer lint -- --dry-run"
|
|
}
|
|
}
|