tkhamez/slim-role-auth

View on GitHub
composer.json

Summary

Maintainability
Test Coverage
{
    "name": "tkhamez/slim-role-auth",
    "description": "Role-based authorization for the Slim framework",
    "keywords": [
        "slim",
        "authorization",
        "psr-7",
        "psr-15",
        "middleware"
    ],
    "type": "library",
    "license": "MIT",
    "require": {
        "php": "^7.4|^8.0",
        "psr/http-factory": "^1.0",
        "psr/http-message": "^1.0 || ^2.0",
        "psr/http-server-handler": "^1.0",
        "psr/http-server-middleware": "^1.0",
        "slim/slim": "^4.0"
    },
    "require-dev": {
        "friendsofphp/php-cs-fixer": "^3.0",
        "phan/phan": "^5.4",
        "phpstan/phpstan": "^1.9",
        "phpunit/phpunit": "^9.5",
        "slim/psr7": "^1.4"
    },
    "suggest": {
        "ext-ast": "Allows static code analysis with Phan",
        "ext-xdebug": "Allows code coverage analysis with PHPUnit"
    },
    "autoload": {
        "psr-4": {
            "Tkhamez\\Slim\\RoleAuth\\": "RoleAuth",
            "Tkhamez\\Slim\\RoleAuth\\Test\\": "tests"
        }
    },
    "scripts": {
        "test": "phpunit",
        "test:coverage": "phpunit --coverage-html coverage",
        "phan": "PHAN_DISABLE_XDEBUG_WARN=1 phan",
        "phpstan": "phpstan analyse RoleAuth tests --level 9 --xdebug",
        "style": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix ./ --dry-run --diff",
        "style:fix": "php-cs-fixer fix ./"
    },
    "config": {
        "platform": {
            "php": "7.4.0"
        }
    }
}