{
    "name": "contao/image",
    "type": "library",
    "description": "Contao image library",
    "license": "LGPL-3.0-or-later",
    "authors": [
        {
            "name": "Martin Auswöger",
            "homepage": "https://github.com/ausi"
        }
    ],
    "require": {
        "php": "^7.1 || ^8.0",
        "ext-json": "*",
        "imagine/imagine": "^0.7.1 || ^1.0",
        "symfony/filesystem": "^2.8 || ^3.0 || ^4.0 || ^5.0",
        "symfony/polyfill-php73": "^1.11",
        "webmozart/path-util": "^2.0"
    },
    "conflict": {
        "contao/imagine-svg": "<0.1.4 || >=2.0"
    },
    "require-dev": {
        "bamarni/composer-bin-plugin": "^1.4",
        "contao/imagine-svg": "^0.1.4 || ^0.2 || ^1.0",
        "phpunit/phpunit": "^8.5 || ^9.5"
    },
    "suggest": {
        "ext-exif": "To support EXIF auto-rotation"
    },
    "autoload": {
        "psr-4": {
            "Contao\\Image\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Contao\\Image\\Tests\\": "tests/"
        }
    },
    "extra": {
        "bamarni-bin": {
            "bin-links": false,
            "target-directory": "tools"
        }
    },
    "scripts": {
        "all": [
            "@unit-tests",
            "@cs-fixer",
            "@phpstan",
            "@psalm"
        ],
        "cs-fixer": [
            "tools/ecs/vendor/bin/ecs check src tests --config tools/ecs/vendor/contao/easy-coding-standard/config/default.php --fix --ansi"
        ],
        "phpstan": [
            "tools/phpstan/vendor/bin/phpstan analyze src tests --level=4 --memory-limit=1G --ansi"
        ],
        "psalm": [
            "tools/psalm/vendor/bin/psalm --no-suggestions --threads=4"
        ],
        "unit-tests": [
            "vendor/bin/phpunit --colors=always"
        ]
    }
}
