summaryrefslogtreecommitdiffstats
path: root/composer.json
blob: 1edc4c59af4c5da974452040b9e0255beffac9d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
    "name": "consolidation/log",
    "description": "Improved Psr-3 / Psr\\Log logger based on Symfony Console components.",
    "license": "MIT",
    "authors": [
        {
            "name": "Greg Anderson",
            "email": "greg.1.anderson@greenknowe.org"
        }
    ],
    "autoload":{
        "psr-4":{
            "Consolidation\\Log\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Consolidation\\TestUtils\\": "tests/src"
        }
    },
    "require": {
        "php": ">=7.1.3",
        "psr/log": "^1.0",
        "symfony/console": "^4|^5"
    },
    "require-dev": {
        "phpunit/phpunit": ">=7.5.20",
        "squizlabs/php_codesniffer": "^3",
        "yoast/phpunit-polyfills": "^0.2.0"
    },
    "minimum-stability": "stable",
    "scripts": {
        "cs": "phpcs -n --standard=PSR2 src",
        "cbf": "phpcbf -n --standard=PSR2 src",
        "unit": "phpunit --colors=always",
        "lint": [
            "find src -name '*.php' -print0 | xargs -0 -n1 php -l",
            "find tests/src -name '*.php' -print0 | xargs -0 -n1 php -l"
        ],
        "test": [
            "@lint",
            "@unit",
            "@cs"
        ]
    },
    "extra": {
        "branch-alias": {
            "dev-main": "2.x-dev"
        }
    },
    "config": {
        "optimize-autoloader": true,
        "sort-packages": true,
        "platform": {
            "php": "7.2.28"
        }
    }
}