sparrow icon indicating copy to clipboard operation
sparrow copied to clipboard

Making Sparrow and Package on Packagist

Open masterbee opened this issue 9 years ago • 2 comments

Hi @mikecao , just wondering if you had the intention to package up Sparrow for inclusion into Packagist. There is already someone with a fork of your class so not sure if you plan on making this available. :+1: for a great Database Layer. Simple yet elegant.

masterbee avatar Apr 20 '15 12:04 masterbee

I'm planning on a rewrite to make it more object oriented, so I may wait until then.

mikecao avatar Apr 21 '15 06:04 mikecao

Some workaround. How to require this library from composer.

composer.json

{
    "autoload": {
        "files": [
            "vendor/mikecao/sparrow/sparrow.php"
        ]
    },
    "require": {
        "mikecao/sparrow": "0.1"
    },
    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "mikecao/sparrow",
                "version": "0.1",
                "dist": {
                    "url": "https://github.com/mikecao/sparrow/archive/v0.1.zip",
                    "type": "zip"
                }
            }
        }
    ]
}

Jekis avatar Apr 21 '18 05:04 Jekis