Answer the question
In order to leave comments, you need to log in
Is it possible to upload additional files via composer besides the main package?
I want to automatically install through composer not only the package distribution, but also additional files needed by the package. For example - dictionaries for phpmorphy.
Something like this, so that the package is downloaded, followed by dictionaries, which would ideally also be unpacked (script: post-install-cmd/post-update-cmd?):
"require": {
"heromantor/phpmorphy": "dev-master"
},
"repositories":[
{
"type":"package",
"package": {
"name":"heromantor/phpmorphy",
"version":"master",
"source":{
"url":"https://github.com/heromantor/phpmorphy.git",
"type":"git",
"reference": "master"
},
"dist":{
"url":"http://downloads.sourceforge.net/project/phpmorphy/phpmorphy-dictionaries/0.3.x/ru_RU/morphy-0.3.x-ru_RU-withjo-utf-8.zip",
"type":"zip"
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question