-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
35 lines (35 loc) · 1.32 KB
/
composer.json
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
{
"name": "futureweb/google-ip-prefix-diff-php",
"description": "PHP implementation of Google's Python script for calculating Google Cloud IP range differences.",
"keywords": ["official google IPs", "google", "ip ranges", "google cloud", "CIDR", "json"],
"type": "library",
"license": "MIT",
"authors": [
{
"name": "Andreas Schnederle-Wagner",
"email": "[email protected]",
"homepage": "https://futureweb.at",
"role": "Developer"
}
],
"require": {
"php": ">=7.4"
},
"suggest": {
"ext-gmp": "Required for using the GMP extension for better performance.",
"ext-bcmath": "Required for using the BCMath extension as a fallback."
},
"autoload": {
"files": [
"google_ip_prefix_diff.php"
]
},
"scripts": {
"pre-install-cmd": [
"php -r \"if (!extension_loaded('gmp') && !extension_loaded('bcmath')) { echo 'Error: Neither GMP nor BCMath extensions are enabled. Please enable one to proceed.\\n'; exit(1); }\""
],
"pre-update-cmd": [
"php -r \"if (!extension_loaded('gmp') && !extension_loaded('bcmath')) { echo 'Error: Neither GMP nor BCMath extensions are enabled. Please enable one to proceed.\\n'; exit(1); }\""
]
}
}