{
    "name": "phpcfdi/cfdi-cleaner",
    "description": "Clean up Mexican CFDI",
    "keywords": ["cfdi", "sat", "mexico"],
    "homepage": "https://github.com/phpcfdi/cfdi-cleaner",
    "license": "MIT",
    "authors": [
        {
            "name": "Carlos C Soto",
            "email": "eclipxe13@gmail.com"
        }
    ],
    "require": {
        "php": ">=7.3",
        "ext-dom": "*",
        "ext-libxml": "*",
        "symfony/polyfill-php80": "^1.22"
    },
    "require-dev": {
        "phpunit/phpunit": "^9.3",
        "ext-json": "*"
    },
    "autoload": {
        "psr-4": {
            "PhpCfdi\\CfdiCleaner\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "PhpCfdi\\CfdiCleaner\\Tests\\": "tests/"
        }
    },
    "scripts": {
        "dev:build": ["@dev:fix-style", "@dev:test"],
        "dev:check-style": [
            "@php tools/php-cs-fixer fix --dry-run --verbose",
            "@php tools/phpcs --colors -sp"
        ],
        "dev:fix-style": [
            "@php tools/php-cs-fixer fix --verbose",
            "@php tools/phpcbf --colors -sp"
        ],
        "dev:test": [
            "@dev:check-style",
            "@php vendor/bin/phpunit --testdox --verbose --stop-on-failure",
            "@php tools/phpstan analyse --verbose"
        ],
        "dev:coverage": [
            "@php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html build/coverage/html/"
        ]
    },
    "scripts-descriptions": {
        "dev:build": "DEV: run dev:fix-style and dev:tests, run before pull request",
        "dev:check-style": "DEV: search for code style errors using php-cs-fixer and phpcs",
        "dev:fix-style": "DEV: fix code style errors using php-cs-fixer and phpcbf",
        "dev:test": "DEV: run dev:check-style, phpunit and phpstan",
        "dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/"
    }
}
