xref: /webtrees/composer.json (revision bd44f43fad3efd8fd7f063363bfcb5a97080fa7d)
1{
2	"name": "fisharebest/webtrees",
3	"description": "webtrees online genealogy",
4	"keywords": ["webtrees", "genealogy"],
5	"license": "GPL-3.0-or-later",
6	"autoload": {
7		"psr-4": {
8			"Fisharebest\\Webtrees\\": "app/"
9		},
10		"files": [
11			"app/Helpers/functions.php"
12		]
13	},
14	"config": {
15		"platform": {
16			"php" : "7.0.8"
17		},
18		"sort-packages": true,
19		"process-timeout": 3600
20	},
21	"require": {
22		"ext-gd": "*",
23		"ext-iconv": "*",
24		"ext-pcre": "*",
25		"ext-pdo": "*",
26		"ext-pdo_mysql": "*",
27		"ext-session": "*",
28		"ext-simplexml": "*",
29		"ext-xml": "*",
30		"filp/whoops": "~2.1",
31		"fisharebest/algorithm": "~1.3",
32		"fisharebest/ext-calendar": "~2.3",
33		"fisharebest/localization": "~1.10",
34		"guzzlehttp/guzzle": "~6.0",
35		"league/commonmark": "~0.17",
36		"league/flysystem": "~1.0",
37		"league/flysystem-ziparchive": "~1.0",
38		"league/glide": "~1.2",
39		"ramsey/uuid": "~3.6",
40		"swiftmailer/swiftmailer": "~5.0",
41		"symfony/expression-language": "~3.3",
42		"symfony/http-foundation": "~3.3",
43		"symfony/http-kernel": "~3.3",
44		"symfony/polyfill-mbstring": "~1.4",
45		"symfony/polyfill-php71": "~1.4",
46		"symfony/polyfill-php72": "~1.4",
47		"tecnickcom/tcpdf": "~6.2",
48		"webuni/commonmark-table-extension": "~0.7"
49	},
50	"require-dev": {
51		"maximebf/debugbar": "*",
52		"mockery/mockery": "*",
53		"phpunit/phpunit": "*",
54		"php-coveralls/php-coveralls": "*"
55	},
56	"scripts": {
57                "webtrees-build": [
58                    "@composer webtrees-mo",
59                    "git checkout language/en-US.mo",
60                    "rm -Rf webtrees/",
61                    "git archive --prefix=webtrees/ HEAD --format=tar | tar -x",
62                    "cp language/*.mo webtrees/language/",
63                    "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees"
64                ],
65                "webtrees-check": [
66                    "### PHP-CODE-ANALYZER",
67                    "phpca --since-version=7.0 app/",
68                    "### PHP-CODE-FIXER",
69                    "phpcf app/",
70                    "### PAHOUT",
71                    "pahout --php-version 7.0.8 --ignore-paths=data .",
72                    "### PHP-CODE-SNIFFER",
73                    "phpcs --standard=PSR2 --exclude=Generic.Files.LineLength app",
74                    "### PHAN",
75                    "phan --directory . --exclude-directory-list tests,vendor",
76                    "### PHP-PARALLEL-LINT",
77                    "parallel-lint --no-progress --exclude vendor .",
78                    "### PSALM",
79                    "psalm --threads=8"
80                ],
81                "webtrees-tools": [
82                    "### PAHOUT",
83                    "@composer global require wata727/pahout=*",
84                    "### PHAN",
85                    "@composer global require phan/phan=*",
86                    "### PHP-CODE-ANALYZER",
87                    "@composer global require wapmorgan/php-code-analyzer=*",
88                    "### PHP-CODE-FIXER",
89                    "@composer global require wapmorgan/php-code-fixer=*",
90                    "### PHP-PARALLEL-LINT",
91                    "@composer global require jakub-onderka/php-parallel-lint=*",
92                    "### PSALM",
93                    "@composer global require vimeo/psalm=*"
94                ],
95		"webtrees-mo": [
96			"msgfmt --output=language/af.mo language/af.po",
97			"msgfmt --output=language/ar.mo language/ar.po",
98			"msgfmt --output=language/bg.mo language/bg.po",
99			"msgfmt --output=language/bs.mo language/bs.po",
100			"msgfmt --output=language/ca.mo language/ca.po",
101			"msgfmt --output=language/cs.mo language/cs.po",
102			"msgfmt --output=language/da.mo language/da.po",
103			"msgfmt --output=language/de.mo language/de.po",
104			"msgfmt --output=language/dv.mo language/dv.po",
105			"msgfmt --output=language/el.mo language/el.po",
106			"msgfmt --output=language/en-AU.mo language/en-AU.po",
107			"msgfmt --output=language/en-GB.mo language/en-GB.po",
108			"msgfmt --output=language/en-US.mo language/en-US.po",
109			"msgfmt --output=language/es.mo language/es.po",
110			"msgfmt --output=language/et.mo language/et.po",
111			"msgfmt --output=language/fa.mo language/fa.po",
112			"msgfmt --output=language/fi.mo language/fi.po",
113			"msgfmt --output=language/fo.mo language/fo.po",
114			"msgfmt --output=language/fr-CA.mo language/fr-CA.po",
115			"msgfmt --output=language/fr.mo language/fr.po",
116			"msgfmt --output=language/gl.mo language/gl.po",
117			"msgfmt --output=language/he.mo language/he.po",
118			"msgfmt --output=language/hr.mo language/hr.po",
119			"msgfmt --output=language/hu.mo language/hu.po",
120			"msgfmt --output=language/id.mo language/id.po",
121			"msgfmt --output=language/is.mo language/is.po",
122			"msgfmt --output=language/it.mo language/it.po",
123			"msgfmt --output=language/ja.mo language/ja.po",
124			"msgfmt --output=language/ka.mo language/ka.po",
125			"msgfmt --output=language/kk.mo language/kk.po",
126			"msgfmt --output=language/ko.mo language/ko.po",
127			"msgfmt --output=language/ln.mo language/ln.po",
128			"msgfmt --output=language/lt.mo language/lt.po",
129			"msgfmt --output=language/lv.mo language/lv.po",
130			"msgfmt --output=language/mi.mo language/mi.po",
131			"msgfmt --output=language/mr.mo language/mr.po",
132			"msgfmt --output=language/ms.mo language/ms.po",
133			"msgfmt --output=language/nb.mo language/nb.po",
134			"msgfmt --output=language/ne.mo language/ne.po",
135			"msgfmt --output=language/nl.mo language/nl.po",
136			"msgfmt --output=language/nn.mo language/nn.po",
137			"msgfmt --output=language/oc.mo language/oc.po",
138			"msgfmt --output=language/pl.mo language/pl.po",
139			"msgfmt --output=language/pt-BR.mo language/pt-BR.po",
140			"msgfmt --output=language/pt.mo language/pt.po",
141			"msgfmt --output=language/ro.mo language/ro.po",
142			"msgfmt --output=language/ru.mo language/ru.po",
143			"msgfmt --output=language/sk.mo language/sk.po",
144			"msgfmt --output=language/sl.mo language/sl.po",
145			"msgfmt --output=language/sq.mo language/sq.po",
146			"msgfmt --output=language/sr-Latn.mo language/sr-Latn.po",
147			"msgfmt --output=language/sr.mo language/sr.po",
148			"msgfmt --output=language/sv.mo language/sv.po",
149			"msgfmt --output=language/sw.mo language/sw.po",
150			"msgfmt --output=language/ta.mo language/ta.po",
151			"msgfmt --output=language/th.mo language/th.po",
152			"msgfmt --output=language/tr.mo language/tr.po",
153			"msgfmt --output=language/tt.mo language/tt.po",
154			"msgfmt --output=language/uk.mo language/uk.po",
155			"msgfmt --output=language/vi.mo language/vi.po",
156			"msgfmt --output=language/yi.mo language/yi.po",
157			"msgfmt --output=language/zh-Hans.mo language/zh-Hans.po",
158			"msgfmt --output=language/zh-Hant.mo language/zh-Hant.po",
159			"rm -Rf data/cache/language*"
160		]
161	},
162	"extra": {
163		"branch-alias": {
164			"dev-master": "2.0-dev"
165		},
166		"scripts-description": {
167			"webtrees-mo": "Compile the language files"
168		}
169	}
170}
171