Is that a recent Flarum install ? That stability should never be stable ?
You should edit the line about minimum-stability so it says "minimum-stability": "beta",
(or add it at the bottom of the file if it's not there)
Then you can run the command composer require zendframework/zend-stratigility": "1.2.1"
(you were right). This will add a line in composer.json. Here's mine for reference: (with a few extensions)
{
"name": "flarum/flarum",
"description": "Delightfully simple forum software.",
"type": "project",
"keywords": ["forum", "discussion"],
"homepage": "http://flarum.org",
"license": "MIT",
"authors": [
{
"name": "Toby Zerner",
"email": "toby.zerner@gmail.com"
},
{
"name": "Franz Liedke",
"email": "franz@develophp.org"
}
],
"support": {
"issues": "https://github.com/flarum/core/issues",
"source": "https://github.com/flarum/flarum",
"docs": "http://flarum.org/docs"
},
"require": {
"flarum/core": "^0.1.0",
"flarum/flarum-ext-akismet": "^0.1.0",
"flarum/flarum-ext-approval": "^0.1.0",
"flarum/flarum-ext-auth-facebook": "^0.1.0",
"flarum/flarum-ext-auth-github": "^0.1.0",
"flarum/flarum-ext-auth-twitter": "^0.1.0",
"flarum/flarum-ext-bbcode": "^0.1.0",
"flarum/flarum-ext-emoji": "^0.1.0",
"flarum/flarum-ext-english": "^0.1.0",
"flarum/flarum-ext-flags": "^0.1.0",
"flarum/flarum-ext-likes": "^0.1.0",
"flarum/flarum-ext-lock": "^0.1.0",
"flarum/flarum-ext-markdown": "^0.1.0",
"flarum/flarum-ext-mentions": "^0.1.0",
"flarum/flarum-ext-pusher": "^0.1.0",
"flarum/flarum-ext-sticky": "^0.1.0",
"flarum/flarum-ext-subscriptions": "^0.1.0",
"flarum/flarum-ext-suspend": "^0.1.0",
"flarum/flarum-ext-tags": "^0.1.0",
"milescellar/flarum-ext-french": "^1.0",
"flagrow/flarum-ext-analytics": "^0.5.0",
"flagrow/upload": "^0.4.1",
"zendframework/zend-stratigility": "1.2.*",
"clarkwinkelmann/flarum-ext-emojionearea": "^0.1.0"
},
"require-dev": {
"franzl/studio": "^0.11.0"
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "beta",
"prefer-stable": true
}
And then run composer update
to take your changes into account and update the vendor
folder.
And finally you can upload your files back to the server (make sure you remove the vendor
folder from the server first so you don't keep any previous file there)