summaryrefslogtreecommitdiffstats
path: root/composer.json
blob: d520edbbd4a29335e66bfce4a64ffa547e94cf11 (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
59
60
61
62
63
64
65
66
67
{
    "name":         "phpspec/prophecy",
    "description":  "Highly opinionated mocking framework for PHP 5.3+",
    "keywords":     ["Mock", "Stub", "Dummy", "Double", "Fake", "Spy", "dev"],
    "homepage":     "https://github.com/phpspec/prophecy",
    "type":         "library",
    "license":      "MIT",
    "authors":      [
        {
            "name":      "Konstantin Kudryashov",
            "email":     "ever.zet@gmail.com",
            "homepage":  "http://everzet.com"
        },
        {
            "name":      "Marcello Duarte",
            "email":     "marcello.duarte@gmail.com"
        }
    ],

    "require": {
        "php":                               "^7.2 || 8.0.* || 8.1.* || 8.2.* || 8.3.* || 8.4.*",
        "phpdocumentor/reflection-docblock": "^5.2",
        "sebastian/comparator":              "^3.0 || ^4.0 || ^5.0 || ^6.0",
        "doctrine/instantiator":             "^1.2 || ^2.0",
        "sebastian/recursion-context":       "^3.0 || ^4.0 || ^5.0 || ^6.0"
    },

    "require-dev": {
        "friendsofphp/php-cs-fixer": "^3.40",
        "phpspec/phpspec": "^6.0 || ^7.0",
        "phpstan/phpstan": "^1.9",
        "phpunit/phpunit": "^8.0 || ^9.0 || ^10.0"
    },

    "autoload": {
        "psr-4": {
            "Prophecy\\": "src/Prophecy"
        }
    },

    "autoload-dev": {
        "psr-4": {
            "Fixtures\\Prophecy\\": "fixtures",
            "Tests\\Prophecy\\": "tests"
        }
    },

    "scripts": {
        "cs:check": "@php php-cs-fixer check --verbose --diff",
        "cs:fix": "@php php-cs-fixer fix",
        "phpstan": "phpstan analyse",
        "phpstan:baseline": "phpstan analyse --generate-baseline"
    },

    "scripts-descriptions": {
        "cs:check": "Check coding standards",
        "cs:fix": "Fix coding standards",
        "phpstan": "Run PHPStan analysis",
        "phpstan:baseline": "Dump PHPStan baseline file - use only for updating, do not add new errors when possible"
    },

    "extra": {
        "branch-alias": {
            "dev-master": "1.x-dev"
        }
    }
}