netglue/RealIP-Helpers

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "netglue/realip-helpers",
    "description": "PSR-15 Middleware for detecting the real client ip amongst other helpers.",
    "type": "library",
    "license": "MIT",
    "authors" : [
        {
            "name" : "George Steel",
            "email" : "george@net-glue.co.uk",
            "homepage" : "https://netglue.uk/"
        }
    ],
    "require": {
        "php": ">=7.3",
        "psr/container": "^1.0",
        "psr/http-server-middleware": "^1.0",
        "psr/http-server-handler": "^1.0"
    },
    "require-dev": {
        "doctrine/coding-standard": "^8",
        "laminas/laminas-diactoros": "^2.2",
        "laminas/laminas-modulemanager": "^2.8",
        "laminas/laminas-mvc": "^3.1",
        "phpstan/phpstan": "^0",
        "phpunit/phpunit": "^9",
        "roave/security-advisories": "dev-master",
        "squizlabs/php_codesniffer": "^3"
    },
    "suggest" : {
        "laminas/laminas-mvc": "Install Laminas MVC in order to use this with a ZF3 app",
        "laminas/laminas-diactoros": "Install a PSR-15 middleware implementation"
    },
    "config" : {
        "minimum-stability" : "stable",
        "prefer-stable" : true,
        "sort-packages": true
    },
    "autoload" : {
        "psr-4" : {
            "NetglueRealIP\\" : "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "NetglueRealIPTest\\" : "test/NetglueRealIPTest/"
        }
    },
    "scripts": {
        "check": [
            "@cs-check",
            "@test"
        ],
        "cs-check": "phpcs",
        "cs-fix": "phpcbf",
        "test": "phpunit --colors=always",
        "test-coverage": "phpunit --colors=always --coverage-clover build/clover.xml",
        "analyse": "phpstan analyse --level=max src",
        "upload-coverage": "php-coveralls -v"
    },
    "extra": {
        "laminas": {
            "module": "NetglueRealIP",
            "config-provider": "NetglueRealIP\\ConfigProvider"
        }
    }
}