malhal / CloudKit-PHP

For server-to-server comms from PHP to CloudKit.
MIT License
39 stars 10 forks source link

composer #6

Open jkowalleck opened 7 years ago

jkowalleck commented 7 years ago

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"
    }
}