xref: /webtrees/composer.json (revision 771ae10a6b066c524545c3bc95fbde7ad19d076c)
1ed285daaSGreg Roach{
2a25f0a04SGreg Roach	"name": "fisharebest/webtrees",
3ed285daaSGreg Roach	"description": "webtrees online genealogy",
4ed285daaSGreg Roach	"keywords": ["webtrees", "genealogy"],
531b7ad55SGreg Roach	"license": "GPL-3.0-or-later",
6a25f0a04SGreg Roach	"autoload": {
70e62c4b8SGreg Roach		"psr-4": {
80e62c4b8SGreg Roach			"Fisharebest\\Webtrees\\": "app/"
91f3fb95cSGreg Roach		},
101f3fb95cSGreg Roach		"files": [
111f3fb95cSGreg Roach			"app/Helpers/functions.php"
121f3fb95cSGreg Roach		]
13a25f0a04SGreg Roach	},
147286a40cSGreg Roach	"config": {
157286a40cSGreg Roach		"platform": {
16ffe6005cSGreg Roach			"php" : "7.0.8"
1722acdb08SGreg Roach		},
18425578caSGreg Roach		"sort-packages": true,
19425578caSGreg Roach		"process-timeout": 3600
207286a40cSGreg Roach	},
21ed285daaSGreg Roach	"require": {
227286a40cSGreg Roach		"ext-gd": "*",
237286a40cSGreg Roach		"ext-iconv": "*",
248ae9e54eSRico Sonntag		"ext-json": "*",
257286a40cSGreg Roach		"ext-pcre": "*",
267286a40cSGreg Roach		"ext-pdo": "*",
277286a40cSGreg Roach		"ext-pdo_mysql": "*",
287286a40cSGreg Roach		"ext-session": "*",
297286a40cSGreg Roach		"ext-simplexml": "*",
307286a40cSGreg Roach		"ext-xml": "*",
3104a1fb9aSGreg Roach		"filp/whoops": "~2.1",
32d592f2ecSGreg Roach		"fisharebest/algorithm": "~1.3",
33d592f2ecSGreg Roach		"fisharebest/ext-calendar": "~2.3",
34d592f2ecSGreg Roach		"fisharebest/localization": "~1.10",
35cc26b3c3SGreg Roach		"guzzlehttp/guzzle": "~6.0",
36e195df77SGreg Roach		"league/commonmark": "~0.17",
37d592f2ecSGreg Roach		"league/flysystem": "~1.0",
38d592f2ecSGreg Roach		"league/flysystem-ziparchive": "~1.0",
393bd6b23eSGreg Roach		"league/glide": "~1.2",
40da3508d3SGreg Roach		"ramsey/uuid": "~3.6",
4123054811SGreg Roach		"swiftmailer/swiftmailer": "~5.0",
425809450fSGreg Roach		"symfony/expression-language": "~3.3",
439499ed38SGreg Roach		"symfony/http-foundation": "~3.3",
449499ed38SGreg Roach		"symfony/http-kernel": "~3.3",
453bd6b23eSGreg Roach		"symfony/polyfill-mbstring": "~1.4",
463bd6b23eSGreg Roach		"symfony/polyfill-php71": "~1.4",
473bd6b23eSGreg Roach		"symfony/polyfill-php72": "~1.4",
4822acdb08SGreg Roach		"tecnickcom/tcpdf": "~6.2",
49e195df77SGreg Roach		"webuni/commonmark-table-extension": "~0.7"
5010a8d14fSGreg Roach	},
51db7d25eeSGreg Roach	"require-dev": {
52bd52fa32SGreg Roach		"maximebf/debugbar": "*",
53db7d25eeSGreg Roach		"mockery/mockery": "*",
5495d954e1SGreg Roach		"phpunit/phpunit": "*",
5595d954e1SGreg Roach		"php-coveralls/php-coveralls": "*"
56db7d25eeSGreg Roach	},
57db6a3ae9SGreg Roach	"scripts": {
58425578caSGreg Roach                "webtrees-build": [
59f872a3beSGreg Roach                    "@composer webtrees-mo",
60bcfab406SGreg Roach                    "git checkout language/en-US.mo",
61f872a3beSGreg Roach                    "rm -Rf webtrees/",
62f872a3beSGreg Roach                    "git archive --prefix=webtrees/ HEAD --format=tar | tar -x",
63bcfab406SGreg Roach                    "cp language/*.mo webtrees/language/",
64bcfab406SGreg Roach                    "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees"
65f872a3beSGreg Roach                ],
66425578caSGreg Roach                "webtrees-check": [
67425578caSGreg Roach                    "### PHP-CODE-ANALYZER",
68425578caSGreg Roach                    "phpca --since-version=7.0 app/",
69425578caSGreg Roach                    "### PHP-CODE-FIXER",
70425578caSGreg Roach                    "phpcf app/",
71c58d56c4SGreg Roach                    "### PAHOUT",
72c58d56c4SGreg Roach                    "pahout --php-version 7.0.8 --ignore-paths=data .",
73*771ae10aSGreg Roach                    "### PHP-PARALLEL-LINT",
74*771ae10aSGreg Roach                    "parallel-lint --no-progress --exclude vendor .",
754686330aSGreg Roach                    "### PHP-CODE-SNIFFER",
7659f2f229SGreg Roach                    "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing,PSR2.ControlStructures.SwitchDeclaration app routes",
77425578caSGreg Roach                    "### PHAN",
7859f2f229SGreg Roach                    "phan --directory . --exclude-directory-list data,resources,routes,tests,vendor",
79*771ae10aSGreg Roach                    "### PHPSTAN",
80*771ae10aSGreg Roach                    "phpstan --level=7 analyze app",
81425578caSGreg Roach                    "### PSALM",
82425578caSGreg Roach                    "psalm --threads=8"
83425578caSGreg Roach                ],
84425578caSGreg Roach                "webtrees-tools": [
85c58d56c4SGreg Roach                    "### PAHOUT",
86c58d56c4SGreg Roach                    "@composer global require wata727/pahout=*",
87425578caSGreg Roach                    "### PHAN",
88425578caSGreg Roach                    "@composer global require phan/phan=*",
89425578caSGreg Roach                    "### PHP-CODE-ANALYZER",
90425578caSGreg Roach                    "@composer global require wapmorgan/php-code-analyzer=*",
91425578caSGreg Roach                    "### PHP-CODE-FIXER",
92425578caSGreg Roach                    "@composer global require wapmorgan/php-code-fixer=*",
93425578caSGreg Roach                    "### PHP-PARALLEL-LINT",
94425578caSGreg Roach                    "@composer global require jakub-onderka/php-parallel-lint=*",
95425578caSGreg Roach                    "### PSALM",
96425578caSGreg Roach                    "@composer global require vimeo/psalm=*"
97425578caSGreg Roach                ],
98db6a3ae9SGreg Roach		"webtrees-mo": [
99db6a3ae9SGreg Roach			"msgfmt --output=language/af.mo language/af.po",
100db6a3ae9SGreg Roach			"msgfmt --output=language/ar.mo language/ar.po",
101db6a3ae9SGreg Roach			"msgfmt --output=language/bg.mo language/bg.po",
102db6a3ae9SGreg Roach			"msgfmt --output=language/bs.mo language/bs.po",
103db6a3ae9SGreg Roach			"msgfmt --output=language/ca.mo language/ca.po",
104db6a3ae9SGreg Roach			"msgfmt --output=language/cs.mo language/cs.po",
105db6a3ae9SGreg Roach			"msgfmt --output=language/da.mo language/da.po",
106db6a3ae9SGreg Roach			"msgfmt --output=language/de.mo language/de.po",
107db6a3ae9SGreg Roach			"msgfmt --output=language/dv.mo language/dv.po",
108db6a3ae9SGreg Roach			"msgfmt --output=language/el.mo language/el.po",
109db6a3ae9SGreg Roach			"msgfmt --output=language/en-AU.mo language/en-AU.po",
110db6a3ae9SGreg Roach			"msgfmt --output=language/en-GB.mo language/en-GB.po",
111db6a3ae9SGreg Roach			"msgfmt --output=language/en-US.mo language/en-US.po",
112db6a3ae9SGreg Roach			"msgfmt --output=language/es.mo language/es.po",
113db6a3ae9SGreg Roach			"msgfmt --output=language/et.mo language/et.po",
114db6a3ae9SGreg Roach			"msgfmt --output=language/fa.mo language/fa.po",
115db6a3ae9SGreg Roach			"msgfmt --output=language/fi.mo language/fi.po",
116db6a3ae9SGreg Roach			"msgfmt --output=language/fo.mo language/fo.po",
117db6a3ae9SGreg Roach			"msgfmt --output=language/fr-CA.mo language/fr-CA.po",
118db6a3ae9SGreg Roach			"msgfmt --output=language/fr.mo language/fr.po",
119db6a3ae9SGreg Roach			"msgfmt --output=language/gl.mo language/gl.po",
120db6a3ae9SGreg Roach			"msgfmt --output=language/he.mo language/he.po",
121db6a3ae9SGreg Roach			"msgfmt --output=language/hr.mo language/hr.po",
122db6a3ae9SGreg Roach			"msgfmt --output=language/hu.mo language/hu.po",
123db6a3ae9SGreg Roach			"msgfmt --output=language/id.mo language/id.po",
124db6a3ae9SGreg Roach			"msgfmt --output=language/is.mo language/is.po",
125db6a3ae9SGreg Roach			"msgfmt --output=language/it.mo language/it.po",
126db6a3ae9SGreg Roach			"msgfmt --output=language/ja.mo language/ja.po",
127db6a3ae9SGreg Roach			"msgfmt --output=language/ka.mo language/ka.po",
128e7759b2eSGreg Roach			"msgfmt --output=language/kk.mo language/kk.po",
129db6a3ae9SGreg Roach			"msgfmt --output=language/ko.mo language/ko.po",
130db6a3ae9SGreg Roach			"msgfmt --output=language/ln.mo language/ln.po",
131db6a3ae9SGreg Roach			"msgfmt --output=language/lt.mo language/lt.po",
132db6a3ae9SGreg Roach			"msgfmt --output=language/lv.mo language/lv.po",
133db6a3ae9SGreg Roach			"msgfmt --output=language/mi.mo language/mi.po",
134db6a3ae9SGreg Roach			"msgfmt --output=language/mr.mo language/mr.po",
135db6a3ae9SGreg Roach			"msgfmt --output=language/ms.mo language/ms.po",
136db6a3ae9SGreg Roach			"msgfmt --output=language/nb.mo language/nb.po",
137db6a3ae9SGreg Roach			"msgfmt --output=language/ne.mo language/ne.po",
138db6a3ae9SGreg Roach			"msgfmt --output=language/nl.mo language/nl.po",
139db6a3ae9SGreg Roach			"msgfmt --output=language/nn.mo language/nn.po",
140db6a3ae9SGreg Roach			"msgfmt --output=language/oc.mo language/oc.po",
141db6a3ae9SGreg Roach			"msgfmt --output=language/pl.mo language/pl.po",
142db6a3ae9SGreg Roach			"msgfmt --output=language/pt-BR.mo language/pt-BR.po",
143db6a3ae9SGreg Roach			"msgfmt --output=language/pt.mo language/pt.po",
144db6a3ae9SGreg Roach			"msgfmt --output=language/ro.mo language/ro.po",
145db6a3ae9SGreg Roach			"msgfmt --output=language/ru.mo language/ru.po",
146db6a3ae9SGreg Roach			"msgfmt --output=language/sk.mo language/sk.po",
147db6a3ae9SGreg Roach			"msgfmt --output=language/sl.mo language/sl.po",
148db6a3ae9SGreg Roach			"msgfmt --output=language/sq.mo language/sq.po",
149db6a3ae9SGreg Roach			"msgfmt --output=language/sr-Latn.mo language/sr-Latn.po",
150db6a3ae9SGreg Roach			"msgfmt --output=language/sr.mo language/sr.po",
151db6a3ae9SGreg Roach			"msgfmt --output=language/sv.mo language/sv.po",
152db6a3ae9SGreg Roach			"msgfmt --output=language/sw.mo language/sw.po",
153db6a3ae9SGreg Roach			"msgfmt --output=language/ta.mo language/ta.po",
154db6a3ae9SGreg Roach			"msgfmt --output=language/th.mo language/th.po",
155db6a3ae9SGreg Roach			"msgfmt --output=language/tr.mo language/tr.po",
156db6a3ae9SGreg Roach			"msgfmt --output=language/tt.mo language/tt.po",
157db6a3ae9SGreg Roach			"msgfmt --output=language/uk.mo language/uk.po",
158db6a3ae9SGreg Roach			"msgfmt --output=language/vi.mo language/vi.po",
159db6a3ae9SGreg Roach			"msgfmt --output=language/yi.mo language/yi.po",
160db6a3ae9SGreg Roach			"msgfmt --output=language/zh-Hans.mo language/zh-Hans.po",
161db6a3ae9SGreg Roach			"msgfmt --output=language/zh-Hant.mo language/zh-Hant.po",
162db6a3ae9SGreg Roach			"rm -Rf data/cache/language*"
163db6a3ae9SGreg Roach		]
164db6a3ae9SGreg Roach	},
16510a8d14fSGreg Roach	"extra": {
16610a8d14fSGreg Roach		"branch-alias": {
167db6a3ae9SGreg Roach			"dev-master": "2.0-dev"
168db6a3ae9SGreg Roach		},
169db6a3ae9SGreg Roach		"scripts-description": {
170db6a3ae9SGreg Roach			"webtrees-mo": "Compile the language files"
17110a8d14fSGreg Roach		}
172ed285daaSGreg Roach	}
173ed285daaSGreg Roach}
174