malhal/CloudKit-PHP

composer

Opened this issue · 0 comments

most people tend to use the composer packet manager: https://getcomposer.org/
so could you add a composer.json ?

even if your project is not listed in https://packagist.org/ it would still be possible to add it to a project like this:

{
    "repositories": [
        { "type": "vcs", "url": "https://github.com/malhal/CloudKit-PHP.git" }
    ],
    "require": {
        "malhal/CloudKit-PHP": "dev-master"
    }
}

at the moment i have to do something which is not very familiar to most composer users ....

{
    "repositories": [
        {   "type": "package",
            "package": {
                "name" : "malhal/CloudKit-PHP",
                "version" : "dev-master",
                "source" : {
                    "type" : "git",
                    "url" : "https://github.com/malhal/CloudKit-PHP",
                    "reference" : "master"
                },
                "autoload" : {
                    "classmap" : ["CloudKit/"]
                }
            }
        }
    ],
    "require": {
        "malhal/CloudKit-PHP": "dev-master"
    }
}