summaryrefslogtreecommitdiffstats
path: root/composer.json
blob: 072430d3618ce612778243a54fc71aab6ffb527a (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
    "name": "phpmyadmin/sql-parser",
    "description": "A validating SQL lexer and parser with a focus on MySQL dialect.",
    "license": "GPL-2.0-or-later",
    "keywords": ["sql", "lexer", "parser", "analysis", "sql syntax highlighter", "sql lexer", "sql tokenizer", "sql parser", "sql linter", "query linter"],
    "homepage": "https://github.com/phpmyadmin/sql-parser",
    "authors": [
        {
            "name": "The phpMyAdmin Team",
            "email": "developers@phpmyadmin.net",
            "homepage": "https://www.phpmyadmin.net/team/"
        }
    ],
    "support": {
        "issues": "https://github.com/phpmyadmin/sql-parser/issues",
        "source": "https://github.com/phpmyadmin/sql-parser"
    },
    "funding": [
        {
            "type": "other",
            "url": "https://www.phpmyadmin.net/donate/"
        }
    ],
    "require": {
        "php": "^7.2 || ^8.0",
        "symfony/polyfill-mbstring": "^1.3",
        "symfony/polyfill-php80": "^1.16"
    },
    "require-dev": {
        "phpbench/phpbench": "^1.1",
        "phpmyadmin/coding-standard": "^3.0",
        "phpmyadmin/motranslator": "^4.0 || ^5.0",
        "phpstan/extension-installer": "^1.1",
        "phpstan/phpstan": "^1.9.12",
        "phpstan/phpstan-phpunit": "^1.3.3",
        "phpunit/php-code-coverage": "*",
        "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
        "psalm/plugin-phpunit": "^0.16.1",
        "vimeo/psalm": "^4.11",
        "zumba/json-serializer": "^3.0"
    },
    "conflict": {
        "phpmyadmin/motranslator": "<3.0"
    },
    "suggest": {
        "ext-mbstring": "For best performance",
        "phpmyadmin/motranslator": "Translate messages to your favorite locale"
    },
    "bin": [
        "bin/highlight-query",
        "bin/lint-query",
        "bin/tokenize-query"
    ],
    "autoload": {
        "psr-4": {
            "PhpMyAdmin\\SqlParser\\": "src"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "PhpMyAdmin\\SqlParser\\Tests\\": "tests"
        }
    },
    "scripts": {
        "phpcbf": "@php phpcbf",
        "phpcs": "@php phpcs",
        "phpstan": "@php phpstan analyse",
        "psalm": "@php psalm --no-diff",
        "phpunit": "@php phpunit --color=always",
        "phpbench": "@php phpbench run tests/benchmarks --report=aggregate",
        "test": [
            "@phpcs",
            "@phpstan",
            "@psalm",
            "@phpunit"
        ],
        "update:baselines": [
            "@php phpstan analyse --generate-baseline",
            "@php psalm --set-baseline=psalm-baseline.xml"
        ]
    },
    "config": {
        "sort-packages": true,
        "allow-plugins": {
            "composer/package-versions-deprecated": true,
            "dealerdirect/phpcodesniffer-composer-installer": true,
            "phpstan/extension-installer": true
        }
    },
    "archive": {
        "exclude": [
            "/tests",
            "/phpunit.xml.dist"
        ]
    }
}