-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcomposer.json
More file actions
executable file
·89 lines (88 loc) · 2.8 KB
/
composer.json
File metadata and controls
executable file
·89 lines (88 loc) · 2.8 KB
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
{
"name": "tomrf/dotenv",
"type": "library",
"description": "simple dotenv file loader using the built-in parse_ini_file()",
"keywords": [ "dotenv", "env", "environment", "environment variables" ],
"homepage": "http://github.com/tomrf/dotenv",
"license": "MIT",
"authors": [
{
"name": "Tom Rune Flo",
"email": "tom@x86.no",
"homepage": "http://github.com/tomrf/"
}
],
"extra": {
"intro": [
"Load environment variables from dotenv file using the PHP built-in parse_ini_file() function",
"with scanner mode `INI_SCANNER_TYPED` (See [PHP manual](https://www.php.net/manual/en/function.parse-ini-file.php))",
"",
"It is a simple, reliable and super fast way to load dotenv files without any bells nor whistles."
],
"example": [
"$dotEnvLoader = new \\Tomrf\\DotEnv\\DotEnvLoader();",
"",
"// loadImmutable() will not overwrite existing environment variables",
"$dotEnvLoader->loadImmutable(__DIR__ . '/.env');",
"",
"// load() will overwrite existing environment variables",
"$dotEnvLoader->load('/path/to/dotenv/file');"
]
},
"require": {
"php": "^8.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpstan/phpstan": "^1.6",
"friendsofphp/php-cs-fixer": "^3.8",
"phpmd/phpmd": "^2.12",
"roave/security-advisories": "dev-latest",
"tomrf/readme-gen": "^0.0"
},
"autoload": {
"psr-4": {
"Tomrf\\DotEnv\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tomrf\\DotEnv\\Test\\": "tests/"
}
},
"scripts": {
"phpunit": [
"phpunit -c .phpunit.dist.xml --colors=auto --coverage-text --stderr"
],
"cs-fixer": [
"php-cs-fixer fix --allow-risky=yes --diff --verbose src/"
],
"phpstan": [
"phpstan analyze --level max src/"
],
"phpmd": [
"phpmd src/ ansi .phpmd-ruleset.xml"
],
"check": [
"@test",
"@phpmd",
"@phpstan"
],
"test": [
"@phpunit"
],
"test-coverage": [
"@putenv XDEBUG_MODE=coverage",
"@phpunit --coverage-xml .phpunit.cache/code-coverage/xml",
"ls -al .phpunit.cache/code-coverage/xml"
],
"test-coverage-html": [
"@putenv XDEBUG_MODE=coverage",
"@phpunit --coverage-html .phpunit.cache/code-coverage/html",
"php -S localhost:0 -t .phpunit.cache/code-coverage/html"
],
"clean": [
"rm -rf vendor/ .phpunit.cache .php-cs-fixer.cache"
]
}
}