mikecao / sparrow

A simple database toolkit for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making Sparrow and Package on Packagist

masterbee opened this issue Β· 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.
πŸ‘ for a great Database Layer. Simple yet elegant.

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

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