nabbar/SwaggerValidator-PHP

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "njuhel/swagger-validator",
    "description": "A Swagger Validation and Parser as lib for PHP to secure and helpful application for request / response validating, security stage, testunit skeleton, testauto generation, ... This lib can be used into any existing application who's having a swagger definition file for request/response (no framework dependancies or included).",
    "version": "1.3.2-dev",
    "type": "library",
    "keywords": ["swagger", "OAI", "openapi", "validator", "parser", "filter", "model", "security", "api", "restfull", "php"],
    "license": "Apache-2.0",
    "authors": [
        {
            "name": "Nicolas JUHEL",
            "email": "swaggervalidator@nabbar.com",
            "role": "Lead Developer"
        }
    ],
    "support": {
        "email": "swaggervalidator@nabbar.com"
    },
    "bin": [
        "bin/SwaggerValidator.phar"
    ],
    "archive": {
        "exclude": ["!/src", "!/bin"]
    },
    "autoload": {
        "psr-4": {
            "SwaggerValidator\\": "src/"
        }
    },
    "minimum-stability": "stable",
    "prefer-stable": true,
    "require": {
        "php": ">5.3.10",
        "ext-bcmath": "*",
        "ext-dom": "*",
        "ext-json": "*",
        "ext-pcre": "*",
        "ext-reflection": "*",
        "ext-spl": "*"
    },
    "require-dev": {
        "phpunit/phpunit": "<=5.6",
        "phpunit/php-file-iterator": "^1.4",
        "phpunit/php-text-template": "^1.2",
        "phpunit/php-code-coverage": "<=4.0",
        "phpunit/php-timer": "^1",
        "phpunit/phpunit-mock-objects": "<=3.4",
        "codeclimate/php-test-reporter": "dev-master",
        "phpdocumentor/phpdocumentor" : "^2.0",
        "evert/phpdoc-md" : "^0.2"
    },
    "scripts": {
        "Coverage": [
            "php vendor/phpunit/phpunit/phpunit --enforce-time-limit --debug --process-isolation --report-useless-tests --colors=always --stop-on-error --stop-on-failure --verbose --configuration tests/phpunit/phpunit.xml --bootstrap tests/phpunit/bootstrap.php --coverage-clover=build/logs/clover.xml --coverage-text=php://stdout"
        ],
        "Phpunit": [
            "php vendor/phpunit/phpunit/phpunit --enforce-time-limit --debug --process-isolation --report-useless-tests --colors=always --stop-on-error --stop-on-failure --verbose --configuration tests/phpunit/phpunit.xml --bootstrap tests/phpunit/bootstrap.php"
        ],
        "PharBuilder": [
            "php -d phar.readonly=0 -f tests/pharBuilder/makePhar.php",
            "chmod ugo+x bin/SwaggerValidator.phar"
        ],
        "PharTest": [
            "php vendor/phpunit/phpunit/phpunit --enforce-time-limit --debug --process-isolation --report-useless-tests --colors=always --stop-on-error --stop-on-failure --verbose --configuration tests/phartest/phpunit.xml --bootstrap tests/phartest/bootstrap.php"
        ],
        "PhpDoc": [
            "rm -vrf doc/; mkdir -vp doc;mkdir -vp temp;",
            "vendor/phpdocumentor/phpdocumentor/bin/phpdoc -c ./phpdoc.xml --target ./doc --validate --progressbar --cache-folder ./temp",
            "vendor/evert/phpdoc-md/bin/phpdocmd doc/structure.xml doc/",
            "rm -rf doc/structure.xml temp/; mv doc/ApiIndex.md doc/README.md"
        ],
        "build": [
            "@Phpunit",
            "@PharBuilder",
            "@PharTest",
            "@Coverage",
            "@PhpDoc"
        ],
        "gitBuild": [
            "@Phpunit",
            "@PharBuilder",
            "@PharTest"
        ],
        "gitBuildCoverage": [
            "@PharBuilder",
            "@PharTest",
            "@Coverage",
            "./vendor/bin/test-reporter"
        ],
        "test": [
            "@Phpunit"
        ]
    }
}