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