Bokt / flarum-phpbb-migrate

Migrates from phpbb to flarum.
MIT License
15 stars 3 forks source link

Composer installation fails #5

Open glewe opened 3 years ago

glewe commented 3 years ago

Hi there I just installed Flarum 0.1.0-beta.15. Running your composer directive in the flarum folder generates this error:

[InvalidArgumentException] Could not find a matching version of package bokt/flarum-phpbb-migrate. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (beta).

How can install the script?

jslirola commented 3 years ago

Hi glewe,

This repository is not added to Packagist so you won't be able to install it using the default composer command. However there is another way to do it, first cloning this repo in your computer and adding it as if it were its own extension in development:

https://discuss.flarum.org/d/1608-extension-development-using-composer-repositories-path https://discuss.flarum.org/d/15209-not-able-to-install-dev-extension

Regards.

Restartz commented 3 years ago

Bazaar seems obsolete and composer require bokt/flarum-phpbb-migrate won't work since it's not on Packagist. So the readme should probably be updated accordingly.

For future reference it's probably easiest to just add the following to your composer.json:

    "repositories":[
        {
            "type": "vcs",
            "url": "git@github.com:bokt/flarum-phpbb-migrate.git"
        }
    ],

and then add "bokt/flarum-phpbb-migrate": "dev-master" within the "require" section.

MichaIng commented 2 years ago

Another issue is the flarum core version dependency, it doesn't work with latest flarum 😞. Since I cannot find a way to tell composer ignoring the version restrictions, the only way I can find is creating a fork and relaxing the flarum requirements.