I was wondering if anyone had installed any private/paid plugins using Composer and if so how you did it.
I’m trying to install one of the addons for Advanced Custom Fields (Options Page) which isn’t publicly available (you have to pay for the download). So far I’ve tried installing it as a third-party plugin hosting the plugin privately on Bitbucket but I keep getting “invalid zip file”, before I dive into this any further has anyone had any better luck with any other methods?
Assuming the former, if the zip you downloaded contained no .git folder then you may need to create your own tags on Bitbucket for the versioning to work. Alternatively you can opt for adding the package as a vcs/git instead of a zip.
I think I was setting the version wrong, I was setting a version number when it needs to be the branch (?), your link to the composer docs pointed me in the right direction.
For plugins that you don’t want to live on a “public” private cloud like Bitbucket, it seems like Satis offers a pretty simple method to provide packagist abilities for self-hosted repos. I’m hoping to go that route shortly.
Your ideal workflow is a little different but I’m not sure it’s all needed. As long as you have your own Satis repository running which defines your private repositories/packages, the only people who will be able to download them are those with the proper SSH keys.
Hi all, I have a question regarding Satis, composer and private plugins.
I have a plugin called x-shortcodes from vendor themeco, I’ve put the entire code of the plugin in our private git repo: ssh://[email protected]:2222/diffusion/SATIS/satis.git
The plugin PHP code is in the themeco/x-shortcodes/ folder inside the git repo.
when I execute composer update x-shortcodes get’s installed fine (fetches it from git as it should do) but places everything in the folder vendor/themeco/x-shortcodes/themeco/ which is wrong, I neet to specify which folder to get from git, he actually pulls all the git root.
To make things short I would place all my private plugins into one repo, under <vendor>/<plugin-name> and serve them that way. Suggestions? Thanks.
and then simply ran $ composer require "wp-premium/gravityforms"
While the above worked, is it the correct approach? or should i be doing something different? (note: i’d really rather not maintain a multitude of private repos, but would if its the correct approach)
note: i also tried the same format above but with “git” as the type and changing the url to:
But correct me if I’m wrong guys– with toranproxy you’d need to manually update the proxy repo every time the plugin updates, and with wp-premium the repo owner updates it?
If that’s the idea of wp-premium does, that seems incredibly useful. But then you’ll probably still need to update the .json manually (to update version #s)? Or is there an automated process for this?
Edit: -“gist” +“idea”, gist is probably a bad word to use now that it’s a proper noun.