xref: /webtrees/composer.json (revision 07128fd837dd5f87a960ea66f5dd86a9b856c60e)
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		"ext-ast": "*",
52		"maximebf/debugbar": "*",
53		"mockery/mockery": "*",
54		"phpunit/phpunit": "*",
55		"php-coveralls/php-coveralls": "*"
56	},
57	"scripts": {
58                "webtrees-build": [
59                    "@composer webtrees-mo",
60                    "git checkout language/en-US.mo",
61                    "rm -Rf webtrees/",
62                    "git archive --prefix=webtrees/ HEAD --format=tar | tar -x",
63                    "cp language/*.mo webtrees/language/",
64                    "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees"
65                ],
66                "webtrees-check": [
67                    "### PHP-CODE-ANALYZER",
68                    "phpca --since-version=7.0 app/",
69                    "### PHP-CODE-FIXER",
70                    "phpcf app/",
71                    "### PHAN",
72                    "phan --directory . --exclude-directory-list tests,vendor",
73                    "### PHP-PARALLEL-LINT",
74                    "parallel-lint --no-progress --exclude vendor .",
75                    "### PSALM",
76                    "psalm --threads=8"
77                ],
78                "webtrees-tools": [
79                    "### PHAN",
80                    "@composer global require phan/phan=*",
81                    "### PHP-CODE-ANALYZER",
82                    "@composer global require wapmorgan/php-code-analyzer=*",
83                    "### PHP-CODE-FIXER",
84                    "@composer global require wapmorgan/php-code-fixer=*",
85                    "### PHP-PARALLEL-LINT",
86                    "@composer global require jakub-onderka/php-parallel-lint=*",
87                    "### PSALM",
88                    "@composer global require vimeo/psalm=*"
89                ],
90		"webtrees-mo": [
91			"msgfmt --output=language/af.mo language/af.po",
92			"msgfmt --output=language/ar.mo language/ar.po",
93			"msgfmt --output=language/bg.mo language/bg.po",
94			"msgfmt --output=language/bs.mo language/bs.po",
95			"msgfmt --output=language/ca.mo language/ca.po",
96			"msgfmt --output=language/cs.mo language/cs.po",
97			"msgfmt --output=language/da.mo language/da.po",
98			"msgfmt --output=language/de.mo language/de.po",
99			"msgfmt --output=language/dv.mo language/dv.po",
100			"msgfmt --output=language/el.mo language/el.po",
101			"msgfmt --output=language/en-AU.mo language/en-AU.po",
102			"msgfmt --output=language/en-GB.mo language/en-GB.po",
103			"msgfmt --output=language/en-US.mo language/en-US.po",
104			"msgfmt --output=language/es.mo language/es.po",
105			"msgfmt --output=language/et.mo language/et.po",
106			"msgfmt --output=language/fa.mo language/fa.po",
107			"msgfmt --output=language/fi.mo language/fi.po",
108			"msgfmt --output=language/fo.mo language/fo.po",
109			"msgfmt --output=language/fr-CA.mo language/fr-CA.po",
110			"msgfmt --output=language/fr.mo language/fr.po",
111			"msgfmt --output=language/gl.mo language/gl.po",
112			"msgfmt --output=language/he.mo language/he.po",
113			"msgfmt --output=language/hr.mo language/hr.po",
114			"msgfmt --output=language/hu.mo language/hu.po",
115			"msgfmt --output=language/id.mo language/id.po",
116			"msgfmt --output=language/is.mo language/is.po",
117			"msgfmt --output=language/it.mo language/it.po",
118			"msgfmt --output=language/ja.mo language/ja.po",
119			"msgfmt --output=language/ka.mo language/ka.po",
120			"msgfmt --output=language/kk.mo language/kk.po",
121			"msgfmt --output=language/ko.mo language/ko.po",
122			"msgfmt --output=language/ln.mo language/ln.po",
123			"msgfmt --output=language/lt.mo language/lt.po",
124			"msgfmt --output=language/lv.mo language/lv.po",
125			"msgfmt --output=language/mi.mo language/mi.po",
126			"msgfmt --output=language/mr.mo language/mr.po",
127			"msgfmt --output=language/ms.mo language/ms.po",
128			"msgfmt --output=language/nb.mo language/nb.po",
129			"msgfmt --output=language/ne.mo language/ne.po",
130			"msgfmt --output=language/nl.mo language/nl.po",
131			"msgfmt --output=language/nn.mo language/nn.po",
132			"msgfmt --output=language/oc.mo language/oc.po",
133			"msgfmt --output=language/pl.mo language/pl.po",
134			"msgfmt --output=language/pt-BR.mo language/pt-BR.po",
135			"msgfmt --output=language/pt.mo language/pt.po",
136			"msgfmt --output=language/ro.mo language/ro.po",
137			"msgfmt --output=language/ru.mo language/ru.po",
138			"msgfmt --output=language/sk.mo language/sk.po",
139			"msgfmt --output=language/sl.mo language/sl.po",
140			"msgfmt --output=language/sq.mo language/sq.po",
141			"msgfmt --output=language/sr-Latn.mo language/sr-Latn.po",
142			"msgfmt --output=language/sr.mo language/sr.po",
143			"msgfmt --output=language/sv.mo language/sv.po",
144			"msgfmt --output=language/sw.mo language/sw.po",
145			"msgfmt --output=language/ta.mo language/ta.po",
146			"msgfmt --output=language/th.mo language/th.po",
147			"msgfmt --output=language/tr.mo language/tr.po",
148			"msgfmt --output=language/tt.mo language/tt.po",
149			"msgfmt --output=language/uk.mo language/uk.po",
150			"msgfmt --output=language/vi.mo language/vi.po",
151			"msgfmt --output=language/yi.mo language/yi.po",
152			"msgfmt --output=language/zh-Hans.mo language/zh-Hans.po",
153			"msgfmt --output=language/zh-Hant.mo language/zh-Hant.po",
154			"rm -Rf data/cache/language*"
155		]
156	},
157	"extra": {
158		"branch-alias": {
159			"dev-master": "2.0-dev"
160		},
161		"scripts-description": {
162			"webtrees-mo": "Compile the language files"
163		}
164	}
165}
166