{
    "name": "feedbackvault",
    "description": "Professional WordPress plugin for managing customer reviews, testimonials, and feedback from multiple platforms including Google Reviews and Trustpilot.",
    "type": "wordpress-plugin",
    "license": "GPL-2.0-or-later",
    "version": "1.0.0",
    "keywords": [
        "wordpress",
        "plugin",
        "reviews",
        "testimonials",
        "feedback",
        "google-reviews",
        "trustpilot",
        "customer-feedback",
        "rating-system",
        "business-reviews"
    ],
    "authors": [
        {
            "name": "darshitjaviya",
            "email": "djmandarin11@gmail.com",
            "role": "web-developer"
        }
    ],
    "support": {
        "email": "djmandarin11@gmail.com"
    },
    "require": {
        "php": ">=7.4",
        "ext-json": "*",
        "ext-curl": "*",
        "ext-mbstring": "*",
        "ext-dom": "*",
        "ext-libxml": "*"
    },
    "require-dev": {
        "phpunit/phpunit": "^9.5",
        "squizlabs/php_codesniffer": "^3.6",
        "phpstan/phpstan": "^1.8",
        "brain/monkey": "^2.6",
        "mockery/mockery": "^1.4",
        "wp-coding-standards/wpcs": "^2.3"
    },
    "suggest": {
        "ext-imagick": "For advanced image processing capabilities",
        "ext-gd": "For basic image processing",
        "ext-openssl": "For secure API communications",
        "ext-zip": "For backup and export functionality"
    },
    "autoload": {
        "psr-4": {
            "FeedbackVault\\Inc\\": "Inc/",
            "FeedbackVault\\Backend\\": "Backend/",
            "FeedbackVault\\Frontend\\": "Frontend/",
            "FeedbackVault\\Public\\": "Public/"
        },
        "classmap": [
            "Inc/",
            "Backend/",
            "Frontend/",
            "Public/"
        ],
        "files": [
            "Inc/functions.php"   
        ]
    },
    "autoload-dev": {
        "psr-4": {
            "FeedbackVault\\Tests\\": "tests/"
        }
    },
    "config": {
        "optimize-autoloader": true,
        "sort-packages": true,
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "phpstan/extension-installer": true
        },
        "platform": {
            "php": "7.4"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "scripts": {
        "test": "phpunit",
        "test:coverage": "phpunit --coverage-html coverage/",
        "cs:check": "phpcs --standard=WordPress --extensions=php --ignore=vendor/,node_modules/,tests/ .",
        "cs:fix": "phpcbf --standard=WordPress --extensions=php --ignore=vendor/,node_modules/,tests/ .",
        "stan": "phpstan analyse --memory-limit=1G",
        "stan:baseline": "phpstan analyse --generate-baseline",
        "quality": [
            "@cs:check",
            "@stan",
            "@test"
        ],
        "build:production": [
            "@composer install --no-dev --optimize-autoloader",
            "@composer dump-autoload --optimize --no-dev"
        ],
        "build:development": [
            "@composer install",
            "@composer dump-autoload --optimize"
        ],
        "post-install-cmd": [
            "[ -f vendor/bin/phpcs ] && vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs || true"
        ],
        "post-update-cmd": [
            "[ -f vendor/bin/phpcs ] && vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs || true"
        ]
    },
    "scripts-descriptions": {
        "test": "Run PHPUnit tests",
        "test:coverage": "Run PHPUnit tests with coverage report",
        "cs:check": "Check code style using WordPress Coding Standards",
        "cs:fix": "Fix code style issues automatically",
        "stan": "Run PHPStan static analysis",
        "quality": "Run all quality checks (coding standards, static analysis, tests)",
        "build:production": "Build for production (no dev dependencies)",
        "build:development": "Build for development"
    },
    "extra": {
        "wordpress-plugin": {
            "main-file": "feedbackvault.php",
            "textdomain": "feedbackvault",
            "version": "1.0.0"
        },
        "installer-paths": {
            "vendor/{$vendor}/{$name}/": ["type:wordpress-plugin"],
            "vendor/{$vendor}/{$name}/": ["type:wordpress-theme"]
        }
    },
    "archive": {
        "exclude": [
            "/tests",
            "/coverage",
            "/node_modules",
            "/src",
            "/.gitignore",
            "/.gitattributes",
            "/phpunit.xml",
            "/phpcs.xml",
            "/phpstan.neon",
            "/webpack.config.js",
            "/package.json",
            "/package-lock.json",
            "/yarn.lock",
            "/.eslintrc.js",
            "/tailwind.config.js",
            "/postcss.config.js"
        ]
    },
    "repositories": [
        {
            "type": "composer",
            "url": "https://wpackagist.org",
            "only": ["wpackagist-plugin/*", "wpackagist-theme/*"]
        }
    ]
}
