summaryrefslogtreecommitdiffstats
path: root/composer.json
blob: a0c67f47f1a7b50419cc89552bec56425199b5bf (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
68
69
70
{
    "name": "glpi/glpi",
    "description": "GLPI dependencies",
    "license": "GPL-2.0",
    "type": "project",
    "homepage": "http://www.glpi-project.org/",
    "support": {
        "irc": "irc://irc.freenode.org/glpi",
        "forum": "http://forum.glpi-project.org/",
        "issues": "https://github.com/glpi-project/glpi/issues",
        "docs": "https://github.com/glpi-project/doc"
    },
    "require": {
        "php": ">=5.6.0",
        "ext-mysqli": "*",
        "ext-fileinfo": "*",
        "ext-json": "*",
        "ext-mbstring": "*",
        "ext-gd": "*",
        "ext-zlib": "*",
        "ext-curl": "*",
        "jasig/phpcas": "~1.3.0",
        "iamcal/lib_autolink": "~1.7",
        "phpmailer/phpmailer": "~5.2",
        "sabre/vobject": "~4.1",
        "simplepie/simplepie": "^1.5",
        "tecnickcom/tcpdf": "~6.2.16",
        "zendframework/zend-cache": "^2.7",
        "zendframework/zend-i18n": "^2.7",
        "zendframework/zend-serializer": "^2.7",
        "michelf/php-markdown": "^1.6",
        "true/punycode": "^2.1",
        "paragonie/random_compat": "^2.0",
        "sebastian/diff": "^1.4"
    },
    "require-dev": {
        "guzzlehttp/guzzle": "~6",
        "glpi-project/coding-standard": "^0.7.0",
        "consolidation/robo": "^1.0",
        "natxet/CssMin": "^3.0",
        "patchwork/jsqueeze": "^2.0",
        "atoum/atoum": "^3.3",
        "atoum/telemetry-extension": "^1.0",
        "fzaninotto/Faker": "^1.7"
    },
    "suggest": {
        "ext-ldap": "Used ot provide LDAP authentication and synchronization",
        "ext-imap": "Used for collection from IMAP"
    },
    "config": {
        "optimize-autoloader": true,
        "platform": {
            "php": "5.6.0"
        }
    },
    "scripts": {
        "testdb":    "php -d memory_limit=512M vendor/bin/atoum --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/database",
        "testfunc":  "php -d memory_limit=512M vendor/bin/atoum --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/functionnal/",
        "testunits": "php -d memory_limit=512M vendor/bin/atoum --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage -d tests/units",
        "testweb":   "php -d memory_limit=512M vendor/bin/atoum --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/web",
        "testldap":  "php -d memory_limit=512M vendor/bin/atoum --debug --force-terminal --use-dot-report --configurations tests/telemetry.php --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/LDAP",
        "csp": "vendor/bin/phpcs --parallel=500 -p --standard=vendor/glpi-project/coding-standard/GlpiStandard/ --ignore=/vendor/,/plugins/,/files/,/lib/,/config/,/tests/config,/.git ./",
        "cs":  "vendor/bin/phpcs -d memory_limit=512M -p --standard=vendor/glpi-project/coding-standard/GlpiStandard/ --ignore=/vendor/,/plugins/,/files/,/lib/,/config/,/tests/config,/css/tiny_mce,/.git ./",
        "post-install-cmd": [
           "@php -r \"file_put_contents('.composer.hash', sha1_file('composer.lock'));\"",
           "patch -d vendor/zendframework/zend-cache/ -p1 < tools/zend-cache-php7.2.patch"
        ],
        "post-update-cmd": "@php -r \"file_put_contents('.composer.hash', sha1_file('composer.lock'));\""
    }
}