composer.json 5.41 KB
Newer Older
1 2
{
    "name": "glpi/glpi",
3
    "description": "GLPI dependencies",
Cédric Anne's avatar
Cédric Anne committed
4
    "license": "GPL-2.0-or-later",
5 6 7 8 9 10 11 12
    "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"
    },
13
    "require": {
14
        "php": "^7.2",
15
        "ext-ctype": "*",
16
        "ext-curl": "*",
Johan Cwiklinski's avatar
Johan Cwiklinski committed
17
        "ext-fileinfo": "*",
18
        "ext-gd": "*",
19
        "ext-iconv": "*",
20
        "ext-intl": "*",
Johan Cwiklinski's avatar
Johan Cwiklinski committed
21 22
        "ext-json": "*",
        "ext-mbstring": "*",
23
        "ext-mysqli": "*",
24
        "ext-simplexml": "*",
Johan Cwiklinski's avatar
Johan Cwiklinski committed
25
        "ext-zlib": "*",
26
        "blueimp/jquery-file-upload": "^10.2",
27
        "elvanto/litemoji": "^1.4 || ^2.0",
28
        "guzzlehttp/guzzle": "^6.5",
29
        "guzzlehttp/psr7": "^1.6",
30
        "htmlawed/htmlawed": "^1.2",
31
        "iamcal/lib_autolink": "^1.7",
32 33
        "laminas/laminas-cache": "^2.8",
        "laminas/laminas-i18n": "^2.10",
34
        "laminas/laminas-mail": "^2.12",
35 36
        "laminas/laminas-mime": "^2.7",
        "laminas/laminas-serializer": "^2.8",
37
        "league/csv": "^9.5",
38
        "mexitek/phpcolors": "^1.0.1",
39
        "michelf/php-markdown": "^1.6",
40
        "monolog/monolog": "^2.0",
41
        "paragonie/sodium_compat": "^1.13",
42
        "phpmailer/phpmailer": "^6.0",
43 44
        "psr/log": "^1.1",
        "psr/simple-cache": "^1.0",
45
        "ramsey/uuid": "^4.0",
Alexandre Delaunay's avatar
Alexandre Delaunay committed
46
        "rlanvin/php-rrule": "^2.1",
Cédric Anne's avatar
Cédric Anne committed
47
        "sabre/dav": "^4.0",
48 49
        "sabre/http": "^5.0",
        "sabre/uri": "^2.1",
50
        "sabre/vobject": "^4.1",
51
        "scssphp/scssphp": "^1.0",
52
        "sebastian/diff": "^3.0",
53
        "simplepie/simplepie": "^1.5",
54
        "symfony/console": "^4.4",
55
        "tecnickcom/tcpdf": "^6.2",
56
        "true/punycode": "^2.1",
57
        "wapmorgan/unified-archive": "^1.0"
Johan Cwiklinski's avatar
Johan Cwiklinski committed
58
    },
59
    "require-dev": {
Cédric Anne's avatar
Cédric Anne committed
60
        "ext-xml": "*",
61
        "atoum/atoum": "^4.0",
62
        "consolidation/robo": "^2.0",
63
        "glpi-project/coding-standard": "^0.8",
64
        "maglnet/composer-require-checker": "^2.0",
65 66
        "mikey179/vfsstream": "^1.6",
        "natxet/cssmin": "^3.0",
67
        "php-parallel-lint/php-parallel-lint": "^1.1",
68
        "sensiolabs/security-checker": "^6.0"
69
    },
70
    "replace": {
71
        "paragonie/random_compat": "*",
72 73 74 75
        "symfony/polyfill-ctype": "*",
        "symfony/polyfill-intl-idn": "*",
        "symfony/polyfill-php72": "*"
    },
Johan Cwiklinski's avatar
Johan Cwiklinski committed
76
    "suggest": {
77 78
        "ext-ldap": "Used to provide LDAP authentication and synchronization",
        "ext-sodium": "Used to provide strong encryption for sensitive data in database"
Johan Cwiklinski's avatar
Johan Cwiklinski committed
79
    },
80
    "config": {
81
        "optimize-autoloader": true,
82
        "platform": {
83
            "php": "7.2.0"
84 85
        },
        "sort-packages": true
86 87
    },
    "scripts": {
Alexandre Delaunay's avatar
Alexandre Delaunay committed
88 89
        "testdb": "php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/database",
        "testfunc": "php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/functionnal/",
90
        "testunits": "php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage -d tests/units",
Alexandre Delaunay's avatar
Alexandre Delaunay committed
91 92 93
        "testweb": "php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/web",
        "testldap": "php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/LDAP",
        "testimap": "php vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --max-children-number 1 -d tests/imap",
Cédric Anne's avatar
Cédric Anne committed
94 95
        "csp": "vendor/bin/phpcs --parallel=500 --cache -p --extensions=php --standard=vendor/glpi-project/coding-standard/GlpiStandard/ --ignore=\"/.git/,^$(pwd)/(config|files|lib|marketplace|node_modules|plugins|tests/config|vendor)/\" ./",
        "cs": "vendor/bin/phpcs -d memory_limit=512M --cache -p --extensions=php --standard=vendor/glpi-project/coding-standard/GlpiStandard/ --ignore=\"/.git/,^$(pwd)/(config|files|lib|marketplace|node_modules|plugins|tests/config|vendor)/\" ./",
Cédric Anne's avatar
Cédric Anne committed
96
        "lint": "vendor/bin/parallel-lint  --exclude files --exclude marketplace --exclude plugins --exclude vendor --exclude tools/vendor .",
Cédric Anne's avatar
Cédric Anne committed
97
        "post-install-cmd": [
Cédric Anne's avatar
Cédric Anne committed
98 99
            "@php -r \"file_put_contents('.composer.hash', sha1_file('composer.lock'));\"",
            "patch -f -p1 -d vendor/tecnickcom/tcpdf/ < tools/tcpdf-php8-compat.patch || echo 'Error applying patch, deprecation warnings related to TCPDF lib may pollute logs'"
Cédric Anne's avatar
Cédric Anne committed
100 101
        ],
        "post-update-cmd": [
Cédric Anne's avatar
Cédric Anne committed
102 103
            "@php -r \"file_put_contents('.composer.hash', sha1_file('composer.lock'));\"",
            "patch -f -p1 -d vendor/tecnickcom/tcpdf/ < tools/tcpdf-php8-compat.patch || echo 'Error applying patch, deprecation warnings related to TCPDF lib may pollute logs'"
Cédric Anne's avatar
Cédric Anne committed
104
        ]
105 106 107 108 109 110
    },
    "repositories": {
        "htmlawed": {
            "type": "composer",
            "url": "https://www.bioinformatics.org/phplabware/downloads/"
        }
111 112
    }
}