qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
553 stars 104 forks source link

Publication of the plugin in packagist.org #775

Open Jazz-Man opened 4 years ago

Jazz-Man commented 4 years ago

It would be very good if this plugin was published on the packagist. This would make it possible to install this plugin using the command

composer require qtranslate/qtranslate-xt

I tried to add this plugin but the package will not be automatically updated. https://packagist.org/packages/qtranslate/qtranslate-xt

Знімок екрана 2020-01-09 о 16 15 02

I can't do that because it's not my repository. It will take a few seconds for the author :)

herrvigg commented 4 years ago

Yes i know but i don't want to add maintenance effort and extra constraints in qTranslate which cannot even be pushed to wordpress.org in the current state. It will migrate some day.

Btw i'm also wondering if it makes much sense to push WP to packagist separately, how does it integrate in the WP installation? You have to activate it manually anyway?

Juje commented 4 years ago

I have the following config in my composer.json file:

"extra":{
    "installer-paths": {
        "htdocs/content/plugins/{$name}/": ["type:wordpress-plugin"],
        "htdocs/content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
        "htdocs/content/themes/{$name}/": ["type:wordpress-theme"]
    },
    "wordpress-install-dir": {
        "johnpbloch/wordpress-core": "htdocs/cms"
    }
},

And that installs the plugin in the correct directory. Cause right now I have installed QtranslateXT as a git submodule which is ins't ideally but it works.

Ps. I'm using Themosis and that's why the directory layout is different.

herrvigg commented 4 years ago

@Juje just be case, have you ever tried to install qTranslate-XT as a mu-plugin?