{
    "name": "phpcfdi/cfdi-expresiones",
    "description": "Genera expresiones de CFDI 4.0, CFDI 3.3, CFDI 3.2, RET 1.0 y RET 2.0",
    "license": "MIT",
    "keywords": [
        "phpcfdi",
        "sat",
        "cfdi"
    ],
    "authors": [
        {
            "name": "Carlos C Soto",
            "email": "eclipxe13@gmail.com",
            "homepage": "https://eclipxe.com.mx/"
        }
    ],
    "homepage": "https://github.com/phpcfdi/cfdi-expresiones",
    "support": {
        "issues": "https://github.com/phpcfdi/cfdi-expresiones/issues",
        "source": "https://github.com/phpcfdi/cfdi-expresiones"
    },
    "require": {
        "php": ">=8.1",
        "ext-dom": "*",
        "ext-mbstring": "*"
    },
    "require-dev": {
        "ext-json": "*",
        "phpunit/phpunit": "^10.5.45"
    },
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "PhpCfdi\\CfdiExpresiones\\": "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "PhpCfdi\\CfdiExpresiones\\Tests\\": "tests/"
        }
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": {
            "*": "dist"
        }
    },
    "scripts": {
        "dev:build": [
            "@dev:fix-style",
            "@dev:test"
        ],
        "dev:check-style": [
            "@php tools/composer-normalize normalize --dry-run",
            "@php tools/php-cs-fixer fix --dry-run --verbose",
            "@php tools/phpcs --colors -sp"
        ],
        "dev:coverage": [
            "@php -dzend_extension=xdebug.so -dxdebug.mode=coverage vendor/bin/phpunit --coverage-html build/coverage/html/"
        ],
        "dev:fix-style": [
            "@php tools/composer-normalize normalize",
            "@php tools/php-cs-fixer fix --verbose",
            "@php tools/phpcbf --colors -sp"
        ],
        "dev:test": [
            "@dev:check-style",
            "@php vendor/bin/phpunit --testdox --stop-on-failure",
            "@php tools/phpstan analyse --no-progress",
            "@php tools/psalm --no-progress",
            "@php tools/infection --no-progress --no-interaction --show-mutations"
        ]
    },
    "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 composer-normalize, php-cs-fixer and phpcs",
        "dev:coverage": "DEV: run phpunit with xdebug and storage coverage in build/coverage/html/",
        "dev:fix-style": "DEV: fix code style errors using composer-normalize, php-cs-fixer and phpcbf",
        "dev:test": "DEV: run dev:check-style, phpunit, phpstan, psalm and infection"
    }
}
