xref: /webtrees/composer.json (revision 59f2f229057fe08ec1b09bd435699190641eed6a)
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": "*",
247286a40cSGreg Roach		"ext-pcre": "*",
257286a40cSGreg Roach		"ext-pdo": "*",
267286a40cSGreg Roach		"ext-pdo_mysql": "*",
277286a40cSGreg Roach		"ext-session": "*",
287286a40cSGreg Roach		"ext-simplexml": "*",
297286a40cSGreg Roach		"ext-xml": "*",
3004a1fb9aSGreg Roach		"filp/whoops": "~2.1",
31d592f2ecSGreg Roach		"fisharebest/algorithm": "~1.3",
32d592f2ecSGreg Roach		"fisharebest/ext-calendar": "~2.3",
33d592f2ecSGreg Roach		"fisharebest/localization": "~1.10",
34cc26b3c3SGreg Roach		"guzzlehttp/guzzle": "~6.0",
35e195df77SGreg Roach		"league/commonmark": "~0.17",
36d592f2ecSGreg Roach		"league/flysystem": "~1.0",
37d592f2ecSGreg Roach		"league/flysystem-ziparchive": "~1.0",
383bd6b23eSGreg Roach		"league/glide": "~1.2",
39da3508d3SGreg Roach		"ramsey/uuid": "~3.6",
4023054811SGreg Roach		"swiftmailer/swiftmailer": "~5.0",
415809450fSGreg Roach		"symfony/expression-language": "~3.3",
429499ed38SGreg Roach		"symfony/http-foundation": "~3.3",
439499ed38SGreg Roach		"symfony/http-kernel": "~3.3",
443bd6b23eSGreg Roach		"symfony/polyfill-mbstring": "~1.4",
453bd6b23eSGreg Roach		"symfony/polyfill-php71": "~1.4",
463bd6b23eSGreg Roach		"symfony/polyfill-php72": "~1.4",
4722acdb08SGreg Roach		"tecnickcom/tcpdf": "~6.2",
48e195df77SGreg Roach		"webuni/commonmark-table-extension": "~0.7"
4910a8d14fSGreg Roach	},
50db7d25eeSGreg Roach	"require-dev": {
51bd52fa32SGreg Roach		"maximebf/debugbar": "*",
52db7d25eeSGreg Roach		"mockery/mockery": "*",
5395d954e1SGreg Roach		"phpunit/phpunit": "*",
5495d954e1SGreg Roach		"php-coveralls/php-coveralls": "*"
55db7d25eeSGreg Roach	},
56db6a3ae9SGreg Roach	"scripts": {
57425578caSGreg Roach                "webtrees-build": [
58f872a3beSGreg Roach                    "@composer webtrees-mo",
59bcfab406SGreg Roach                    "git checkout language/en-US.mo",
60f872a3beSGreg Roach                    "rm -Rf webtrees/",
61f872a3beSGreg Roach                    "git archive --prefix=webtrees/ HEAD --format=tar | tar -x",
62bcfab406SGreg Roach                    "cp language/*.mo webtrees/language/",
63bcfab406SGreg Roach                    "zip --quiet --recurse-paths --move -9 webtrees.zip webtrees"
64f872a3beSGreg Roach                ],
65425578caSGreg Roach                "webtrees-check": [
66425578caSGreg Roach                    "### PHP-CODE-ANALYZER",
67425578caSGreg Roach                    "phpca --since-version=7.0 app/",
68425578caSGreg Roach                    "### PHP-CODE-FIXER",
69425578caSGreg Roach                    "phpcf app/",
70c58d56c4SGreg Roach                    "### PAHOUT",
71c58d56c4SGreg Roach                    "pahout --php-version 7.0.8 --ignore-paths=data .",
724686330aSGreg Roach                    "### PHP-CODE-SNIFFER",
73*59f2f229SGreg Roach                    "phpcs --standard=PSR12 -s --exclude=Generic.Files.LineLength,PSR2.ControlStructures.ControlStructureSpacing,PSR2.ControlStructures.SwitchDeclaration app routes",
74425578caSGreg Roach                    "### PHAN",
75*59f2f229SGreg Roach                    "phan --directory . --exclude-directory-list data,resources,routes,tests,vendor",
76425578caSGreg Roach                    "### PHP-PARALLEL-LINT",
77425578caSGreg Roach                    "parallel-lint --no-progress --exclude vendor .",
78425578caSGreg Roach                    "### PSALM",
79425578caSGreg Roach                    "psalm --threads=8"
80425578caSGreg Roach                ],
81425578caSGreg Roach                "webtrees-tools": [
82c58d56c4SGreg Roach                    "### PAHOUT",
83c58d56c4SGreg Roach                    "@composer global require wata727/pahout=*",
84425578caSGreg Roach                    "### PHAN",
85425578caSGreg Roach                    "@composer global require phan/phan=*",
86425578caSGreg Roach                    "### PHP-CODE-ANALYZER",
87425578caSGreg Roach                    "@composer global require wapmorgan/php-code-analyzer=*",
88425578caSGreg Roach                    "### PHP-CODE-FIXER",
89425578caSGreg Roach                    "@composer global require wapmorgan/php-code-fixer=*",
90425578caSGreg Roach                    "### PHP-PARALLEL-LINT",
91425578caSGreg Roach                    "@composer global require jakub-onderka/php-parallel-lint=*",
92425578caSGreg Roach                    "### PSALM",
93425578caSGreg Roach                    "@composer global require vimeo/psalm=*"
94425578caSGreg Roach                ],
95db6a3ae9SGreg Roach		"webtrees-mo": [
96db6a3ae9SGreg Roach			"msgfmt --output=language/af.mo language/af.po",
97db6a3ae9SGreg Roach			"msgfmt --output=language/ar.mo language/ar.po",
98db6a3ae9SGreg Roach			"msgfmt --output=language/bg.mo language/bg.po",
99db6a3ae9SGreg Roach			"msgfmt --output=language/bs.mo language/bs.po",
100db6a3ae9SGreg Roach			"msgfmt --output=language/ca.mo language/ca.po",
101db6a3ae9SGreg Roach			"msgfmt --output=language/cs.mo language/cs.po",
102db6a3ae9SGreg Roach			"msgfmt --output=language/da.mo language/da.po",
103db6a3ae9SGreg Roach			"msgfmt --output=language/de.mo language/de.po",
104db6a3ae9SGreg Roach			"msgfmt --output=language/dv.mo language/dv.po",
105db6a3ae9SGreg Roach			"msgfmt --output=language/el.mo language/el.po",
106db6a3ae9SGreg Roach			"msgfmt --output=language/en-AU.mo language/en-AU.po",
107db6a3ae9SGreg Roach			"msgfmt --output=language/en-GB.mo language/en-GB.po",
108db6a3ae9SGreg Roach			"msgfmt --output=language/en-US.mo language/en-US.po",
109db6a3ae9SGreg Roach			"msgfmt --output=language/es.mo language/es.po",
110db6a3ae9SGreg Roach			"msgfmt --output=language/et.mo language/et.po",
111db6a3ae9SGreg Roach			"msgfmt --output=language/fa.mo language/fa.po",
112db6a3ae9SGreg Roach			"msgfmt --output=language/fi.mo language/fi.po",
113db6a3ae9SGreg Roach			"msgfmt --output=language/fo.mo language/fo.po",
114db6a3ae9SGreg Roach			"msgfmt --output=language/fr-CA.mo language/fr-CA.po",
115db6a3ae9SGreg Roach			"msgfmt --output=language/fr.mo language/fr.po",
116db6a3ae9SGreg Roach			"msgfmt --output=language/gl.mo language/gl.po",
117db6a3ae9SGreg Roach			"msgfmt --output=language/he.mo language/he.po",
118db6a3ae9SGreg Roach			"msgfmt --output=language/hr.mo language/hr.po",
119db6a3ae9SGreg Roach			"msgfmt --output=language/hu.mo language/hu.po",
120db6a3ae9SGreg Roach			"msgfmt --output=language/id.mo language/id.po",
121db6a3ae9SGreg Roach			"msgfmt --output=language/is.mo language/is.po",
122db6a3ae9SGreg Roach			"msgfmt --output=language/it.mo language/it.po",
123db6a3ae9SGreg Roach			"msgfmt --output=language/ja.mo language/ja.po",
124db6a3ae9SGreg Roach			"msgfmt --output=language/ka.mo language/ka.po",
125e7759b2eSGreg Roach			"msgfmt --output=language/kk.mo language/kk.po",
126db6a3ae9SGreg Roach			"msgfmt --output=language/ko.mo language/ko.po",
127db6a3ae9SGreg Roach			"msgfmt --output=language/ln.mo language/ln.po",
128db6a3ae9SGreg Roach			"msgfmt --output=language/lt.mo language/lt.po",
129db6a3ae9SGreg Roach			"msgfmt --output=language/lv.mo language/lv.po",
130db6a3ae9SGreg Roach			"msgfmt --output=language/mi.mo language/mi.po",
131db6a3ae9SGreg Roach			"msgfmt --output=language/mr.mo language/mr.po",
132db6a3ae9SGreg Roach			"msgfmt --output=language/ms.mo language/ms.po",
133db6a3ae9SGreg Roach			"msgfmt --output=language/nb.mo language/nb.po",
134db6a3ae9SGreg Roach			"msgfmt --output=language/ne.mo language/ne.po",
135db6a3ae9SGreg Roach			"msgfmt --output=language/nl.mo language/nl.po",
136db6a3ae9SGreg Roach			"msgfmt --output=language/nn.mo language/nn.po",
137db6a3ae9SGreg Roach			"msgfmt --output=language/oc.mo language/oc.po",
138db6a3ae9SGreg Roach			"msgfmt --output=language/pl.mo language/pl.po",
139db6a3ae9SGreg Roach			"msgfmt --output=language/pt-BR.mo language/pt-BR.po",
140db6a3ae9SGreg Roach			"msgfmt --output=language/pt.mo language/pt.po",
141db6a3ae9SGreg Roach			"msgfmt --output=language/ro.mo language/ro.po",
142db6a3ae9SGreg Roach			"msgfmt --output=language/ru.mo language/ru.po",
143db6a3ae9SGreg Roach			"msgfmt --output=language/sk.mo language/sk.po",
144db6a3ae9SGreg Roach			"msgfmt --output=language/sl.mo language/sl.po",
145db6a3ae9SGreg Roach			"msgfmt --output=language/sq.mo language/sq.po",
146db6a3ae9SGreg Roach			"msgfmt --output=language/sr-Latn.mo language/sr-Latn.po",
147db6a3ae9SGreg Roach			"msgfmt --output=language/sr.mo language/sr.po",
148db6a3ae9SGreg Roach			"msgfmt --output=language/sv.mo language/sv.po",
149db6a3ae9SGreg Roach			"msgfmt --output=language/sw.mo language/sw.po",
150db6a3ae9SGreg Roach			"msgfmt --output=language/ta.mo language/ta.po",
151db6a3ae9SGreg Roach			"msgfmt --output=language/th.mo language/th.po",
152db6a3ae9SGreg Roach			"msgfmt --output=language/tr.mo language/tr.po",
153db6a3ae9SGreg Roach			"msgfmt --output=language/tt.mo language/tt.po",
154db6a3ae9SGreg Roach			"msgfmt --output=language/uk.mo language/uk.po",
155db6a3ae9SGreg Roach			"msgfmt --output=language/vi.mo language/vi.po",
156db6a3ae9SGreg Roach			"msgfmt --output=language/yi.mo language/yi.po",
157db6a3ae9SGreg Roach			"msgfmt --output=language/zh-Hans.mo language/zh-Hans.po",
158db6a3ae9SGreg Roach			"msgfmt --output=language/zh-Hant.mo language/zh-Hant.po",
159db6a3ae9SGreg Roach			"rm -Rf data/cache/language*"
160db6a3ae9SGreg Roach		]
161db6a3ae9SGreg Roach	},
16210a8d14fSGreg Roach	"extra": {
16310a8d14fSGreg Roach		"branch-alias": {
164db6a3ae9SGreg Roach			"dev-master": "2.0-dev"
165db6a3ae9SGreg Roach		},
166db6a3ae9SGreg Roach		"scripts-description": {
167db6a3ae9SGreg Roach			"webtrees-mo": "Compile the language files"
16810a8d14fSGreg Roach		}
169ed285daaSGreg Roach	}
170ed285daaSGreg Roach}
171