Pink-Crab/HTTP

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "pinkcrab/http",
    "type": "library",
    "description": "Wrapper around Nyholm\\Psr7 library with a few helper methods and a basic emitter. For use in WordPress during ajax calls.",
    "keywords": [],
    "homepage": "https://pinkcrab.co.uk",
    "license": "MIT",
    "authors": [{
        "name": "Glynn Quelch",
        "email": "glynn.quelch@pinkcrab.co.uk",
        "homepage": "http://clappo.co.uk",
        "role": "Developer"
    }],
    "autoload": {
        "psr-4": {
            "PinkCrab\\HTTP\\": "src"
        },
        "files": []
    },
    "autoload-dev": {
        "psr-4": {
            "PinkCrab\\HTTP\\Tests\\": "tests/"
        }
    },
    "require-dev": {
        "phpunit/phpunit": "^7.0 || ^8.0",
        "phpstan/phpstan": "^1.0",
        "szepeviktor/phpstan-wordpress": "^1.0",
        "php-stubs/wordpress-stubs": "^6.0 || ^5.9",
        "roots/wordpress": "^6.1",
        "wp-phpunit/wp-phpunit": "^6.1",
        "dealerdirect/phpcodesniffer-composer-installer": "*",
        "wp-coding-standards/wpcs": "*",
        "yoast/phpunit-polyfills": "^0.2.0 || ^1.0.0",
        "symfony/var-dumper": "*",
        "gin0115/wpunit-helpers": "~1",
        "vlucas/phpdotenv": "^5.4"
    },
    "require": {
        "php": ">=7.2.0",
        "nyholm/psr7": "^1.3",
        "nyholm/psr7-server": "^1.0"
    },
    "scripts": {
        "test": "phpunit --coverage-clover clover.xml --testdox --colors=always",
        "coverage": "phpunit --coverage-html coverage-report --testdox --colors=always --exclude skip",
        "analyse": "./vendor/bin/phpstan analyse src -l8",
        "sniff": "./vendor/bin/phpcs src/ -v",
        "all": "composer test && composer analyse && composer sniff"
    },
    "config": {
        "allow-plugins": {
            "roots/wordpress-core-installer": true,
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    }
}