Author Topic: how to install carddav 4.0 without composer?  (Read 2137 times)

Offline alexanderdd

  • Newbie
  • *
  • Posts: 7
how to install carddav 4.0 without composer?
« on: September 07, 2020, 05:24:34 PM »
Hello,
I cannot use composer at my hoster, only ssh or ftp.

Do you know if/how I can install carddav 4.0.0alpha? This is the composer.json

Code: [Select]
{
    "name": "roundcube/carddav",
    "type": "roundcube-plugin",
    "description": "CardDAV adapter for connecting to CardDAV-enabled addressbooks",
    "keywords": ["addressbook","carddav","contacts","owncloud","davical"],
    "homepage": "https://www.benjamin-schieder.de/carddav.html",
    "license": "GPL-2.0",
    "authors": [
        {
            "name": "Benjamin Schieder",
            "email": "carddav@wegwerf.anderdonau.de",
            "homepage": "https://www.benjamin.schieder.de/",
            "role": "Developer"
        },
        {
            "name": "Michael Stilkerich",
            "email": "michael@stilkerich.eu",
            "role": "Developer"
        }
    ],
    "require": {
        "php": ">=7.1.0",
        "sabre/vobject": "^4.3",
        "roundcube/plugin-installer": "*",
        "mstilkerich/carddavclient": "*"
    },
    "require-dev": {
        "vimeo/psalm": "^3.11",
        "phpcompatibility/php-compatibility": "*",
        "dealerdirect/phpcodesniffer-composer-installer": "^0.6.0"
    },
    "extra": {
        "roundcube": {
            "min-version": "1.2.0"
        }
    },
    "autoload": {
        "psr-4": {
            "MStilkerich\\CardDavAddressbook4Roundcube\\": "src/"
        }
    }
}

Offline mik0r

  • Newbie
  • *
  • Posts: 5
Re: how to install carddav 4.0 without composer?
« Reply #1 on: March 02, 2021, 03:00:18 AM »
Hello,

  I am author of the carddav plugin.

I see your use case that I did not think of before (not being able to run commands on the server). Although you could simply run composer on a different computer to download the dependencies, I see that it is much more convenient to have everything needed inside the tarball so you can simply extract it to the plugins directory.

Therefore, from release v4.1.0 onwards the tarballs again contain the vendor/ subdirectory with the dependencies. You can fetch it here: https://github.com/mstilkerich/rcmcarddav/releases

The instructions inside the tarball are not updated (because the 4.1.0 release was already done before that change), but INSTALL.md on the master branch is: https://github.com/mstilkerich/rcmcarddav/blob/master/doc/INSTALL.md

Basically, you can just omit the composer steps.

Offline alexanderdd

  • Newbie
  • *
  • Posts: 7
Re: how to install carddav 4.0 without composer?
« Reply #2 on: March 04, 2021, 06:50:34 PM »
Thanks for the reply and thank you very much for continued development.

For the moment I found a different solution for my company, but I might come back to roundcube/rcmcarddav at some point.

All the best,
Alex