1{
2  "name": "php-webdriver/webdriver",
3  "description": "A PHP client for Selenium WebDriver. Previously facebook/webdriver.",
4  "license": "MIT",
5  "type": "library",
6  "keywords": [
7    "webdriver",
8    "selenium",
9    "php",
10    "geckodriver",
11    "chromedriver"
12  ],
13  "homepage": "https://github.com/php-webdriver/php-webdriver",
14  "require": {
15    "php": "^5.6 || ~7.0 || ^8.0",
16    "ext-curl": "*",
17    "ext-json": "*",
18    "ext-zip": "*",
19    "symfony/polyfill-mbstring": "^1.12",
20    "symfony/process": "^2.8 || ^3.1 || ^4.0 || ^5.0 || ^6.0"
21  },
22  "require-dev": {
23    "ondram/ci-detector": "^2.1 || ^3.5 || ^4.0",
24    "php-coveralls/php-coveralls": "^2.4",
25    "php-mock/php-mock-phpunit": "^1.1 || ^2.0",
26    "php-parallel-lint/php-parallel-lint": "^1.2",
27    "phpunit/phpunit": "^5.7 || ^7 || ^8 || ^9",
28    "squizlabs/php_codesniffer": "^3.5",
29    "symfony/var-dumper": "^3.3 || ^4.0 || ^5.0 || ^6.0"
30  },
31  "replace": {
32    "facebook/webdriver": "*"
33  },
34  "suggest": {
35    "ext-SimpleXML": "For Firefox profile creation"
36  },
37  "minimum-stability": "dev",
38  "autoload": {
39    "psr-4": {
40      "Facebook\\WebDriver\\": "lib/"
41    },
42    "files": [
43      "lib/Exception/TimeoutException.php"
44    ]
45  },
46  "autoload-dev": {
47    "psr-4": {
48      "Facebook\\WebDriver\\": [
49        "tests/unit",
50        "tests/functional"
51      ]
52    },
53    "classmap": [
54      "tests/functional/"
55    ]
56  },
57  "config": {
58    "allow-plugins": {
59      "ergebnis/composer-normalize": true
60    },
61    "sort-packages": true
62  },
63  "scripts": {
64    "post-install-cmd": [
65      "php -r 'if (PHP_VERSION_ID > 70103) { exit(1); }' || composer install --working-dir=tools/php-cs-fixer --no-progress --no-interaction"
66    ],
67    "post-update-cmd": [
68      "php -r 'if (PHP_VERSION_ID > 70103) { exit(1); }' || composer update --working-dir=tools/php-cs-fixer --no-progress --no-interaction"
69    ],
70    "all": [
71      "@lint",
72      "@analyze",
73      "@test"
74    ],
75    "analyze": [
76      "vendor/bin/phpstan analyze -c phpstan.neon --ansi",
77      "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --dry-run -vvv --ansi",
78      "vendor/bin/phpcs --standard=PSR2 ./lib/ ./tests/"
79    ],
80    "fix": [
81      "@composer normalize",
82      "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff -vvv || exit 0",
83      "vendor/bin/phpcbf --standard=PSR2 ./lib/ ./tests/"
84    ],
85    "lint": [
86      "vendor/bin/parallel-lint -j 10 ./lib ./tests example.php",
87      "@composer validate",
88      "@composer normalize --dry-run"
89    ],
90    "preinstall": [
91      "@composer update --no-progress --no-interaction",
92      "@composer require --dev phpstan/phpstan",
93      "@composer require --dev ergebnis/composer-normalize"
94    ],
95    "test": [
96      "vendor/bin/phpunit --colors=always"
97    ]
98  }
99}
100